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
。今天我守着不完整的代码:
- build无法成功;
- 代码读取无头绪
- 搜索代码(找半天webhook相关的内容)无结果