码迷,mamicode.com
首页 > 其他好文 > 详细

git 取消/添加 某文件的跟踪

时间:2014-12-05 12:15:07      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:io   使用   sp   strong   on   文件   div   bs   cti   

如果我们不小心将某个文件加入了 git 版本控制,但是突然又不想继续跟踪控制这个文件了,怎么办呢?

使用 git update-index 即可。

不想继续追踪某个文件

git update-index --assume-unchanged your_file_path

如果想再次继续跟踪某个文件

git update-index --no-assume-unchanged your_file_path

git 取消/添加 某文件的跟踪

标签:io   使用   sp   strong   on   文件   div   bs   cti   

原文地址:http://www.cnblogs.com/debmzhang/p/4146106.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!