Skip to content

Instantly share code, notes, and snippets.

@parndt
Created May 18, 2011 03:05
Show Gist options
  • Save parndt/977925 to your computer and use it in GitHub Desktop.
Save parndt/977925 to your computer and use it in GitHub Desktop.
# 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}'`"
@malclocke
Copy link

Replacing one esoteric text parsing language with another for slightly more readability:

git pull --rebase origin `git branch | awk '/^\*/{print $2}'`

Also, why the /dev/null STDERR redirect on git branch?

@parndt
Copy link
Author

parndt commented May 18, 2011 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment