Mar 232010
Q In Git you have your working tree and your repository but the necessary in-between state is the staging area. Files get staged by doing a git add. What’s the opposite of a git add, i.e. how can I “unstage” a file?
A Updated 25 August 2011.

    Embarrassingly, I just saw the comments now over a year later and it turns out I have a lot to learn with GIT, I have not used it enough and got this completely wrong as the comments testify. I leave my deleted answer for my own education. I have turned on comment notification now!

      As the handy command line help on a git status shows, files can be unstaged with git rm.

        To wipe any changes you have made since the last commit, do a git reset HEAD <file name with complete path>

         Posted by on March 23 2010  Tagged with: