LoginSignup
14
12

More than 5 years have passed since last update.

Gitで編集済みファイルをignoreする

Posted at

Gitでファイルを編集してから.gitignoreに追加しても無視されないので、git update indexでgit上は編集してないと見なす。

ディレクトリ

git update-index --assume-unchanged ignore-dir-name/

特定のファイル

git update-index --assume-unchanged dirname/filename.json
14
12
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
14
12