🌈

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