gitエラー パーミッションの差異でcoできない時
チェックアウトしたいが、下記のエラー
git checkout pr_bowling error: Your local changes to the following files would be overwritten by checkout: 05.ls/ls.rb Please commit your changes or stash them before you switch branches. Aborting
diff
diff --git a/05.ls/ls.rb b/05.ls/ls.rb old mode 100644 new mode 100755
パーミッションが違うとのこと。
(変えたつもりはないが・・・)
対策
git config core.filemode false
参考: