您的位置:首页 > 其它

How do I commit all deleted files in Git?

2014-03-11 21:08 323 查看
Try this:

$ git add -u

This tells git to automatically stage tracked files -- including deleting the previously tracked files.

If you are using git 2.0, you should now use:

$ git add -u :/


Warning, starting git 2.0 (mid 2013), this will stage files on the whole working tree. If you want to stage file only under your current path with that working tree, then you need to use

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