Gitでファイルパーミッションの変更を無視する

サーバーでpullしたところ、ファイルパーミッションが777でなかったので、

chmod 777 reminder.shしたところ、git statusに表示されてた。

これで良いらしい。

$ git config -l | grep filemode

core.filemode=true

$ git config core.filemode false

blog.t5o.me

 

The -c flag can be used to set this option for one-off commands:

ちなみにone-offは一回限りって意味らしいです。