LoginSignup
4
7

More than 5 years have passed since last update.

Gitさん...俺はファイルのパーミッションを変更させたくないんだ

Last updated at Posted at 2017-04-05

何が起きたのか

チェックアウトする度にファイルのパーミッションが書き換わって画像の上書き保存ができない:sob:

仕方ないから毎回毎回毎回毎回chmodしてたけど、もう限界なんです:poop:

パーミッション変更を無視する設定があった

core.filemodeをfalseにすればパーミッションの変更が無視されるらしい。

$ git config core.filemode false

確認は以下のコマンド

$ git config -l | grep filemode
core.filemode=false

快適どす:ok_woman_tone1:

4
7
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
4
7