Chapter 8 of 14All chapters
Chapter 8 of 14
Remotes
The copy that everyone shares.
Naming a remote
A remote is another copy of the repository, usually called origin. git remote -v lists what you are connected to, and git remote add attaches another.
- Cloning sets up origin for you automatically.
- origin/main is your last known view of the remote branch, not the remote itself.
Tracking branches
git push -u origin feature links your local branch to one on the remote, so later pushes and pulls need no arguments.