【问题标题】:error: invalid path 'filePath:Zone.Identifier'错误:路径无效'filePath:Zone.Identifier'
【发布时间】:2023-03-04 09:08:01
【问题描述】:

如果我尝试检查 development 分支,我会收到以下错误:

$ git checkout development
error: invalid path 'src/assets/svg-icon/exit.svg:Zone.Identifier'

谁能告诉我为什么我会得到这个?我正在使用 windows-10。

【问题讨论】:

    标签: git


    【解决方案1】:

    我在克隆项目时遇到了同样的问题。 通过在此页面的帮助下了解发生这种情况的原因解决了这个问题 https://github.com/git-for-windows/git/issues/2777

    然后运行此命令设置标志

    git config core.protectNTFS false

    以上命令需要管理员权限才能更新标志

    要以管理员身份运行此命令,以管理员身份打开终端(cmd 提示符)并运行下面提到的命令

    git config --system core.protectNTFS false

    更多详细信息,您可以浏览此页面

    github/git Checkout Returns 'error: invalid path' on Windows

    【讨论】:

      猜你喜欢
      • 2018-03-05
      • 2015-08-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多