LoginSignup
0
0

More than 5 years have passed since last update.

gitignore備忘録

Last updated at Posted at 2018-06-01

git管理下のファイルを無視する

gitで複数人管理を行う時、ローカル環境が異なるために、管理ファイルをあえて無視したい。
例えば、sqlのユーザー名やパスが違う。(ほんとは直打ちやばい?)
そんな時は以下のコマンドを使う。

方法

git update-index --assume-unchanged [ファイル名]

この設定を取り消すには次のようにします。

git update-index --no-assume-unchanged [ファイル名]
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