Skip to content

Instantly share code, notes, and snippets.

@thomaslee
Created May 2, 2012 22:00
Show Gist options
  • Save thomaslee/2580882 to your computer and use it in GitHub Desktop.
Save thomaslee/2580882 to your computer and use it in GitHub Desktop.
git-stashrebase
#!/bin/bash
set -ex
git stash
trap "git stash pop" EXIT TERM
git rebase "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment