首页 > 其他 > 详细

How do I commit all deleted files in Git?

时间:2014-03-12 01:59:36      阅读:429      评论:0      收藏:0      [点我收藏+]

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 .

How do I commit all deleted files in Git?,布布扣,bubuko.com

How do I commit all deleted files in Git?

原文:http://www.cnblogs.com/silentjesse/p/3594885.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!