Make an existing Git branch track a remote branch?
Given a branch foo and a remote upstream: As of Git 1.8.0: Or, if local branch foo is not the current branch: Or, if you like to type longer commands, these are equivalent to the above two: As of Git 1.7.0 (before 1.8.0): Notes: All of the above commands will cause local branch foo to track remote branch foo from remote upstream. The old (1.7.x) … Read more