2014-11-05 23 views

回答

2

这可能是你在找什么:

git update-index --assume-unchanged <file>

,然后,如果在任何时候,你要撤消该

git update-index --no-assume-unchanged <file>

Source here

+0

辉煌!好东西! – justingordon 2014-11-06 00:38:20

0

this link展望看来你可能想用

git update-index --skip-worktree 
+0

我没有试过这个。 git update-index --assume-unchanged 效果很好。 – justingordon 2014-11-06 00:38:51