I’ve read that in Git if you want to push a local branch to the remote server and make the local branch track the remote, you can use git push -u mybranch remoteserver/mybranch
. I suppose that means if I use git push
without the -u
option then it will push the branch but not track it. But what does “push without tracking” actually mean? What will I miss out on if I forget the tracking part? I realize if you just forgot, you can always establish the tracking relationship after the fact by using git branch -u
. My point is, why is there a difference?
I’ve read the Pro Git book (excellent BTW) and searched all kinds of questions, and everybody talks about how to set up tracking branches, but nobody discusses what would be the result of pushing a local branch without tracking, and why such a thing would ever be useful.