Pycharm behaving strange with Git (Filename in tree entry contains backslash)

后端 未结 3 421
孤城傲影
孤城傲影 2021-02-06 18:33

I just got a new laptop and wanted to clone my universities git repository with pycharm.

Whenever I try to clone the repository, using either Git bash/GUI

3条回答
  •  一整个雨季
    2021-02-06 18:46

    See VonC's answer for update on the issue


    There is an open issue on git-for-windows repository (for v2.24)

    Git 2.24 breaks existing repositories: filename in tree entry contains backslash

    The workaround as suggested by user carlescufi is to disable core.protectNTFS.

    git config --global core.protectNTFS false
    

    Quoting git docs here,

    core.protectNTFS

    If set to true, do not allow checkout of paths that would cause problems with the NTFS filesystem, e.g. conflict with 8.3 "short" names. Defaults to true on Windows, and false elsewhere.

提交回复
热议问题