2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Git Clone時に「error: filename in tree entry contains backslash:」

Posted at

Git Errorは突然に

ちょっと環境が特殊かもしれませんが、、
Sambaで共有しているLinuxの作業ディレクトリ上に
WindowsのGitクライアントから git clone すると、下記のようなエラーが出ました。

error: filename in tree entry contains backslash:

調べると、、

ドキュメンテーションより

core.protectNTFSがtrueに設定されている場合、
NTFSファイルシステムで問題を引き起こす可能性のあるパスのチェックアウトを許可しません。
Windowsではデフォルトはtrue、それ以外ではfalseです。

設定変更

git config --global core.protectNTFS false

うちの環境が特殊ですよね。。:sob:

参考

https://github.com/civetweb/civetweb/issues/812
https://git-scm.com/docs/git-config/en

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?