Created
May 18, 2011 03:05
-
-
Save parndt/977925 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put in your ~/.bash_profile | |
# This pulls (with rebase) the current branch from origin. | |
# Enjoy | |
# Thanks to Malcolm Locke | |
alias gpr="git pull --rebase origin `git branch | awk '/^\*/{print $2}'`" |
Yes I like your version more.
No reason for /dev/null
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replacing one esoteric text parsing language with another for slightly more readability:
Also, why the /dev/null STDERR redirect on
git branch
?