您的位置:首页 > 其它

撤销git add操作

2012-03-27 15:22 357 查看
http://stackoverflow.com/questions/348170/undo-git-add-before-commitI 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 <added_file_to_undo>


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: