git pull currently tracked branch
Posted
by Sean Clark Hess
on Stack Overflow
See other posts from Stack Overflow
or by Sean Clark Hess
Published on 2010-03-18T17:09:53Z
Indexed on
2010/03/18
19:01 UTC
Read the original article
Hit count: 449
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.
© Stack Overflow or respective owner