Git: Ignore tracked files

前端 未结 3 1206
终归单人心
终归单人心 2020-11-27 08:49

I have some tracked files in a repository which are automatically modified when building the code. I don\'t want to untrack them, I just don\'t want them to appear as modifi

3条回答
  •  余生分开走
    2020-11-27 09:45

    Sure.

    git update-index --assume-unchanged [ ...]
    

    To undo and start tracking again:

    git update-index --no-assume-unchanged [ ...]
    

提交回复
热议问题