Skip to content

Instantly share code, notes, and snippets.

@pferreir
Created April 15, 2014 15: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 pferreir/10741071 to your computer and use it in GitHub Desktop.
Save pferreir/10741071 to your computer and use it in GitHub Desktop.
[alias]
rh = "!f(){ BRANCH=\"$(git-rev-parse --symbolic-full-name --abbrev-ref HEAD)\" && git checkout $1 && git rebase $BRANCH && git checkout $BRANCH && git merge $1; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment