LoginSignup
12
10

More than 5 years have passed since last update.

.gitignore対象にしないで、git addの候補から外す。めも。

Posted at

.gitignore対象にしたくないけど、git addに出てきてほしくないファイルがあった。(開発環境用に書き換えるconfigファイルなど)

コミット時に毎回git addから外すのめんどくさい。たまに間違えてコミットしてたりしてめんどくさい。

以下で対象からはずせた。

git update-index --skip-worktree target.file

詳しくは: http://qiita.com/usamik26/items/56d0d3ba7a1300625f92

12
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
10