LoginSignup
67
68

More than 5 years have passed since last update.

Gitで特定のファイルのローカル環境での変更を無視する

Posted at

Git管理されたレポジトリで、ローカル環境でのみ必要な設定ファイルの変更が修正ファイルとして出てきてしまうので、それを無視する方法です。

特定のファイルの変更を無視する

git update-index --assume-unchanged [path]

特定のファイルの変更の無視を解除する

git update-index --no-assume-unchanged [path]

接続先DBのローカル設定ファイルなどに利用しています。

67
68
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
67
68