我正在使用Git-1.9.0-preview20140217Windows.据我所知,这个版本应该解决文件名太长的问题.但不适合我.
当然,我做错了什么:我没有git config core.longpaths true和git add .再git commit.一切顺利.但是当我现在做的时候git status,我会得到一个文件列表Filename too long,例如:
node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js: Filename too long
Run Code Online (Sandbox Code Playgroud)
复制对我来说非常简单:只需使用Angular生成器创建一个Yeoman Web应用程序("yo angular")并node_modules从.gitignore文件中删除.然后重复上述Git命令.
我在这里错过了什么?
我有一个有趣的错误,在使用git for windows(版本2.12.0.windows.1)时不断出现.我最近将我的Windows配置文件目录从一个位置迁移到另一个位置.
对于一些git命令,我得到错误:
error: could not lock config file C:/Users/<my old profile>/.influxdb/.gitconfig: No such file or directory
error: could not lock config file C:/Users/<my old profile>/.influxdb/.gitconfig: No such file or directory
注意:此错误总是出现两次,例如,如果我尝试这样做 git config --global diff.tool p4merge
有趣的是,它正在寻找的这个文件夹不存在,如果我git config -l --show-origin用来查看git获取它的设置,它没有提到这个路径,如果我查看任何CONFIG文件,我看不到对此的引用不存在的道路.
git存储对这条旧路径的引用在哪里?我需要更新它,因为我认为这个错误阻止了一些命令工作.