Having an upstream branch registered for a local branch will:
tell git to show the relationship between the two branches in git status and git branch -v.
directs git pullwithout arguments to pull from the upstream when the new branch is checked out.
To see all the current remote branch, type git remote -v . Best, use:
Pull, Commit, Push
After work on the local files is done, commit:
Before working on anything new, make sure to pull any change from the central repository
You can also just check if there are any changes by fetching the information. This will not affect any file, just let you know if some files on the remote repository are different than the files on your local machine
git pull is essentially a git fetch immediately followed by a git merge
Commits
See the section on commits in the previous chapter.