How do I commit all deleted files in Git?

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 .
上一篇:SQL server 变量if,while,存储过程


下一篇:RabbitMQ消息队列安装和配置以及推送消息