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 topic set up to track remote branch master from origin.
Switched to a new branch 'topic'
$ git unknown-command
origin/master
Is there such a command?