Skip to content

Instantly share code, notes, and snippets.

@miend
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miend/8b3404cc1ec8c20c3525 to your computer and use it in GitHub Desktop.
Save miend/8b3404cc1ec8c20c3525 to your computer and use it in GitHub Desktop.
Git rebase from origin shortcut
# Git rebase origin/["your checked out branch"]
function git_rebase_from_origin() {
git rebase origin/$(git rev-parse --symbolic-full-name --abbrev-ref HEAD)
}
alias 'gitrbo'='git_rebase_from_origin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment