Skip to content

Instantly share code, notes, and snippets.

@samthomson
Created April 17, 2017 14:11
Show Gist options
  • Save samthomson/f0e521bb2bc5bdeb720230a0cfcfa269 to your computer and use it in GitHub Desktop.
Save samthomson/f0e521bb2bc5bdeb720230a0cfcfa269 to your computer and use it in GitHub Desktop.
rebase a feature branch to it's initial state
# git rebase i expects a commit hash as an argument, but will rebase from after that commit. This will effectively rebase from before the commit.
git rebase -i `git merge-base feature master`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment