How do I remove a single file from the staging area of Git but not remove it from the index or undo

Posted by PHLAK on Stack Overflow See other posts from Stack Overflow or by PHLAK
Published on 2009-10-01T19:24:04Z Indexed on 2010/05/07 12:28 UTC
Read the original article Hit count: 203

Situation: I have a Git repository with files already in the index. I make changes to several files, open Git and add these files to my staging area with "git add ."

Question: How do I remove one of those files from the staging area but not remove it from the index or undo the changes to the file itself?

© Stack Overflow or respective owner

Related posts about git

Related posts about unstage