Difference between git checkout --track origin/branch and git checkout -b branch origin/branch
问题 Does anybody know the difference between these two commands to switch and track a remote branch? git checkout -b branch origin/branch git checkout --track origin/branch I think both keep track of the remote branch so I can push my changes to the branch on origin, right? Is there any practical differences?? Thanks! 回答1: The two commands have the same effect (thanks to Robert Siemer’s answer for pointing it out). The practical difference comes when using a local branch named differently : git