Windows版Git中的文件名太長 - Filename too long in Git for Windows

問題:

I'm using Git-1.9.0-preview20140217 for Windows. 我正在Windows上使用Git-1.9.0-preview20140217 As I know, this release should fix the issue with too long filenames. 據我所知,此版本應解決文件名過長的問題。 But not for me. 可是不適合我。 node

Surely I'm doing something wrong: I did git config core.longpaths true and git add . 固然,我作錯了:我作了git config core.longpaths truegit add . and then git commit . 而後git commit Everything went well. 一切順利。 But when I now do a git status , I get a list of files with Filename too long , for example: 可是,當我如今執行git status ,會獲得文件Filename too long的文件列表,例如: git

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

It is quite simple to reproduce for me: just create a Yeoman web application with the Angular generator ("yo angular") and remove node_modules from the .gitignore file. 對我來講,複製很是簡單:只需使用Angular生成器(「 yo angular」)建立Yeoman Web應用程序, node_modules.gitignore文件中刪除node_modules Then repeat the aforementioned Git commands. 而後重複上述Git命令。 web

What am I missing here? 我在這裏想念什麼? app


解決方案:

參考一: https://stackoom.com/question/1Wixa/Windows版Git中的文件名太長
參考二: https://oldbug.net/q/1Wixa/Filename-too-long-in-Git-for-Windows
相關文章
相關標籤/搜索