のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

WindowsとUbuntuでgit statusの表示が異なる

WindowsのSourceTreeのターミナルでgit statusのコマンドを打ったときと、
Ubuntuでgit statusのコマンドを打ったとき、表示が異なる。

以下は、Windowsで打ったとき

$ git config --local -l
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
$ git config --system -l
core.symlinks=false
core.autocrlf=true
$ git config --global -l
core.autocrlf=false
core.excludesfile=d:\Users\user01\Documents\gitignore_global.txt
core.quotepath=false

パーミッションの違いで差がでているようだ。

$ git diff .gitignore
diff --git a/.gitignore b/.gitignore
old mode 100755
new mode 100644

stackoverflow.com