相关疑难解决方法(0)

Git for Windows中的文件名太长了

我正在使用Git-1.9.0-preview20140217Windows.据我所知,这个版本应该解决文件名太长的问题.但不适合我.

当然,我做错了什么:我没有git config core.longpaths truegit 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命令.

我在这里错过了什么?

windows git

587
推荐指数
15
解决办法
35万
查看次数

配置文件迁移后"Git错误:无法锁定配置文件C:/Users/old_profile/.gitconfig:没有此类文件或目录"

我有一个有趣的错误,在使用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存储对这条旧路径的引用在哪里?我需要更新它,因为我认为这个错误阻止了一些命令工作.

git git-for-windows

7
推荐指数
2
解决办法
1万
查看次数

标签 统计

git ×2

git-for-windows ×1

windows ×1