Skip to content

Instantly share code, notes, and snippets.

@libitte
Created June 2, 2013 06:45
Show Gist options
  • Select an option

  • Save libitte/5692840 to your computer and use it in GitHub Desktop.

Select an option

Save libitte/5692840 to your computer and use it in GitHub Desktop.
git管理しているファイルを敢えて無視する assume-unchanged

###assume-unchanged ファイルの変更を無視する。

git update-index --assume-unchanged filename

###no-assume-unchanged この設定を取り消す。

git update-index --no-assume-unchanged filename

###設定確認

git ls-files -v

大文字になっているときは普通にgitで管理している。 小文字担っている時、assume-unchangedが効いていて、そのファイルに変更を加えても変更を無視する。

@libitte
Copy link
Author

libitte commented Jun 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment