Command Reference

git remote Tutorial

Explains how git remote lists, adds, renames, and removes remote definitions, and how origin fits into common collaboration flows.

The short version

git remote manages your named remote repository definitions.

Common forms

git remote -v
git remote add origin https://example.com/repo.git
git remote rename origin upstream
git remote remove upstream