LoginSignup
0
0

More than 3 years have passed since last update.

gitで管理されているファイルを自分のローカルだけ管理対象から外す

Posted at

ローカルで自分だけの設定など、あるファイルが編集状態にあり、間違ってコミットしないようにする時に便利。

管理対象から外す

git update-index --skip-worktree 【ファイル名】

管理対象外のファイルを確認する

git ls-files -v | grep ^S

管理対象に戻す

git update-index --no-skip-worktree 【ファイル名】
0
0
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
0
0