1

Macで仮想ボックスを使用してubuntu 12 VMを実行しています。Mac の共有フォルダーに git リポジトリを複製しました。そのフォルダーから、ubuntu VM で intellij プロジェクトを作成しています。問題は、そのプロジェクトを作成すると、すべてのファイルが変更されたものとしてマークされ、内容が変更されないことです(おそらく行末が異なるため)。どうすればこれを回避できますか? この構成は、Mac の .gitconfig と ubuntu vm autocrlf = input にあります。

誰かが解決策を提案できますか?

4

2 に答える 2

1

Check that you are using git on host machine and then try to set core.autocrlf to false:

git config --global core.autocrlf false

Reset all 'changes' to head with:

git reset --hard HEAD

Also check that your git has disabled handling for filemode changes

git config --list

Should be

core.filemode=false

If not, then set it with:

git config --global core.filemode false
于 2016-03-07T13:57:58.353 に答える