git unadd

As per http://pivotallabs.com/git-unadd/, you can ‘unget’ a file.

git config --global alias.unadd "reset HEAD"

You can then do the following:

git unget file

Very useful, any so much easier to remember than:

git reset HEAD file

Leave a Reply

Your email address will not be published. Required fields are marked *