DEV Community

Discussion on: Why are you using 'git pull' ?

Collapse
 
jessekphillips profile image
Jesse Phillips • Edited

Your workflow example also isn't the most optimal one could

git pull origin <branch>

I understand one wouldn't do this as it does not update you local copy of the branch. My view on that is of course different.

Thread Thread
 
thefluxapex profile image
Ian Pride

That's why I alias git pull origin master to gpom.

Thread Thread
 
jessekphillips profile image
Jesse Phillips

Yeah that is useless for me as I

git fetch origin
git rebase origin/master

Thread Thread
 
thefluxapex profile image
Ian Pride

Whatever works for you.

Thread Thread
 
jessekphillips profile image
Jesse Phillips

git pull --rebase origin master

Would actually do what I do. So many options.