I\'d like a command that emits the name of the tracked branch for the branch I\'m on. Something like:
$ git checkout --track -b topic origin/master Branch t
As of git 1.8.3 you can now do this:
git branch -vv
Very convenient as it shows the tracking branch for all local branches at once, but it is not suitable for scripting.