Skip to content

Instantly share code, notes, and snippets.

@vortizhe
Created October 20, 2011 16:15
Show Gist options
  • Save vortizhe/1301563 to your computer and use it in GitHub Desktop.
Save vortizhe/1301563 to your computer and use it in GitHub Desktop.
alias branch="git branch 2>/dev/null | grep '*' | sed 's/\* //'"
alias p='git fetch origin && git rebase -p origin/`branch`'
alias pm='git fetch origin && git merge origin/`branch`'
alias P='git push origin `branch`'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment