In “Pushing” we go a little deeper into pushing specific branches and in “Tracking Branches” we see how to set up tracking branches to automatically push to.
We set up highly custom refspecs in order to make commands, where Git will fetch from the remote you specify and then immediately try to merge it into the branch you’re on.
We introduce it quickly in “Fetching and Pulling from Your Remotes” and show how to see what it will merge if you run it in “Inspecting a Remote”.
We also see how to use it to help with rebasing difficulties in “Rebase When You Rebase”.
We show how to use it with a URL to pull in changes in a one-off fashion in “Checking Out Remote Branches”.
command communicates with a remote repository and fetches down all the information that is in that repository that is not in your current one and stores it in your local database.
We first look at this command in “Fetching and Pulling from Your Remotes” and we continue to see examples of it use in “Remote Branches”.
There are not very many commands in Git that access the network, nearly all of the commands operate on the local database.
When you are ready to share your work or pull changes from elsewhere, there are a handful of commands that deal with remote repositories.