Skip to content

Instantly share code, notes, and snippets.

@bunnymatic
Created January 5, 2011 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bunnymatic/766967 to your computer and use it in GitHub Desktop.
Save bunnymatic/766967 to your computer and use it in GitHub Desktop.
Adding the rebaseprep line to your .gitconfig will give you the ability to prep for a rebase. The method jumps from the current branch into master, pulls the latest, and jumps back to your working branch. This leaves you all ready to rebase with master
[alias]
rebaseprep = !sh -c 'git checkout master && git pull && git checkout -'
@christianbradley
Copy link

Brilliant.

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