🌈
Git管理下にあるファイルを一時的に管理対象外にする
ファイルを管理対象外する
git update-index --skip-worktree <ファイル名>
ファイルを管理対象にする
git update-index --no-skip-worktree <ファイル名>
対象外にしたファイルを探す
git ls-files -t | grep ^S
参考: -tオプションで表示されるstatusの意味
| ステータス | 説明 |
|---|---|
| H | cached |
| S | skip-worktree |
| M | unmerged |
| R | removed/deleted |
| C | modified/changed |
| K | to be killed |
| ? | other |
Discussion