When you create a new branch which already exits in a remote repository but don't in a local repository, probably you can run these two commands:git checkout -b hotfix origin/hotfix
and git branch hotfix origin/hotfix
where hotfix is exactly the branch I hypothesized. So, what is exactly the difference between these two commands? It seems that both makes a new branch already tracking the upstream branch.
Can anyone explain it?