I use git checkout -b somebranch origin/somebranch
to make sure my local branches track remotes already. I would like a way to pull from the tracked branch no matter which branch I am using. In other words, I want to say git pull
or some other command, without specifying the branch, and have it mean git pull origin somebranch
if I'm on the local branch somebranch
Is there a way to do this without putting an entry in the config file for each branch? It would be difficult to maintain if we have to remember to manually enter some config stuff for each branch.