Skip to content

Instantly share code, notes, and snippets.

@nit3ch
Created March 4, 2014 05:28
Show Gist options
  • Save nit3ch/9340776 to your computer and use it in GitHub Desktop.
Save nit3ch/9340776 to your computer and use it in GitHub Desktop.
Undo 'git add' before commit
You can also git reset HEAD <file>, which will remove it from the current index (the "about to be committed" area) without changing anything else.
REF: http://stackoverflow.com/questions/348170/undo-git-add-before-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment