美文网首页
windows环境下git clone时提示文件名过长问题

windows环境下git clone时提示文件名过长问题

作者: 戈壁堂 | 来源:发表于2020-10-20 10:09 被阅读0次

    Filename too long in Git for Windows

    使用管理员权限执行git config --system core.longpaths true修复次问题。否则会提示——

    error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied

    git clone sonarqube源码时,提示

    Resolving deltas: 100% (498459/498459), done.
    fatal: cannot create directory at 'server/sonar-db-migration/src/test/resources/org/sonar/server/platform/db/migration/version/v84/permissiontemplates/fk/permtplcharacteristics/AddUniqueIndexOnTemplateUuidAndPermissionKeyColumnsOfPermTplCharacteristicsTableTest': Filename too long
    warning: Clone succeeded, but checkout failed.
    You can inspect what was checked out with 'git status'
    and retry the checkout with 'git checkout -f HEAD'

    然后再执行git checkout -f HEAD。今天我守着不完整的代码:

    • build无法成功;
    • 代码读取无头绪
    • 搜索代码(找半天webhook相关的内容)无结果

    相关文章

      网友评论

          本文标题:windows环境下git clone时提示文件名过长问题

          本文链接:https://www.haomeiwen.com/subject/gpjlmktx.html