撤消git update-index --skip-worktree [英] Undo git update-index --skip-worktree
本文介绍了撤消git update-index --skip-worktree的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
前一段时间,我这样做是为了忽略git所跟踪的文件的变化:
A while ago I did this to ignore changes to a file tracked by git:
git update-index --skip-worktree <file>
现在我实际上想要对该文件的更改进行提交。如何取消 skip-worktree
?
Now I actually want to commit changes to that file to source. How do I undo the effects of skip-worktree
?
的影响谢谢,
Kevin
Thanks, Kevin
推荐答案
Aha! I simply want:
git update-index --no-skip-worktree <file>
这篇关于撤消git update-index --skip-worktree的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文