2014-11-05 53 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