Skip to content

Instantly share code, notes, and snippets.

@kirang89
Created October 2, 2013 18:35
Show Gist options
  • Save kirang89/6798396 to your computer and use it in GitHub Desktop.
Save kirang89/6798396 to your computer and use it in GitHub Desktop.
Splitting a single commit into several others, for the sake of clarity.
git checkout fix
git reset HEAD^
git checkout -b fix-1
git add -p
git commit
git stash
git checkout -b fix-1
git stash pop
git commit -a

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