在commit之前撤銷git add操作 (undo git add before commit) - 有朋自遠方來... - 博客頻道 - CSDN.NET
http://stackoverflow.com/questions/348170/undo-git-add-before-commit I mistakenly added files using the command git add file I have not yet run git commit. Is there a way to undo this or remove these files from the commit? You want: git rm --cached...