Undo a git add and bring back file to staging area

 git reset HEAD <file> will do the job.

Your modifications will be kept and the file will once again show up in the modified, but not yet staged set.

Advertisements