note: I'm using zsh shell with oh-my-zsh which has aliases:
gcm = git checkout master
ggpull = git pull origin
ggpush = git push origin
And at last I haven't setup on my new machine, but will do soon: alias rbm = gcm && ggpull && git checkout <current branch> && git rebase master (rebase branch to master)
The there's a interpolation you can use for getting current branch :) I think I'll have to modify above, but should give general idea.
An ever-smiling full-stack developer, specializing in the rapid development of custom web applications. Always eager to learn new technologies and concepts and share knowledge.
me personally, if there's a update thing on PR, I simply run:
fix any conflicts, then:
note: I'm using zsh shell with oh-my-zsh which has aliases:
And at last I haven't setup on my new machine, but will do soon:
alias rbm = gcm && ggpull && git checkout <current branch> && git rebase master
(rebase branch to master)The there's a interpolation you can use for getting current branch :) I think I'll have to modify above, but should give general idea.
Thanks @cyberhck for sharing