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

2020-10-20  本文已影响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。今天我守着不完整的代码:

上一篇下一篇

猜你喜欢

热点阅读