Skip to content

Instantly share code, notes, and snippets.

@ebridges
Created January 26, 2013 16:55
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 ebridges/4643237 to your computer and use it in GitHub Desktop.
Save ebridges/4643237 to your computer and use it in GitHub Desktop.
git commit partial changes
$ git add -p file1
$ git stash --keep-index
$ git commit -m 'only partial adds' file1
$ git stash pop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment