2017-02-10 4 views
1

私はリモートのgitリポジトリのローカルコピーを持っています。 "git status"を実行するたびにこのエラーが発生します。git status:不正なfilenameの結果が「プロトコルエラー」

git status 
public/app.chart/license/Creative Commons�� Attribution-NonCommercial-ShareAlike 4.0 International�� CC BY-NC-SA 4.0.pdf: Protocol error 
On branch master 
Your branch is up-to-date with 'origin/master'. 

このファイルはリポジトリに存在しません。私は枝を切り替えると 、私はこのメッセージが表示されます。

git checkout test_branch 
D "public/app.chart/license/Creative Commons\200\224 Attribution-NonCommercial-ShareAlike 4.0 International\200\224 CC BY-NC-SA 4.0.pdf" 
Switched to branch 'test_branch' 

は、この問題を解決する方法はありますか?

+0

それは 'のgit status'と' gitのは、このファイル*が*存在しないことをcheckout'両方から明らかですリポジトリに保存します。おそらく、OSがパス名を拒否するため、*作業ツリー*には存在しません。あなたはMacOSにいますか? Gitのバージョンは何ですか? – torek

答えて

1

試してみて、問題が後に続く場合は以下を参照してください

cd /path/to/my/local/repo 
git config core.quotepath false 

git config man pageから:

If this variable is set to false, the bytes higher than 0x80 are not quoted but output as verbatim.

+0

何か違いはないようですが、助けてくれてありがとう:-) – Ledazinha

+1

@Ledazinha OK。 Gitのどのバージョンを使用していますか?どのOSで? – VonC

+0

Gitのバージョンは2.7.4です。 OSはUbuntu 16.04 xenialです。カーネルはx86_64 Linux 4.4.0-42- genericです。 – Ledazinha

関連する問題