The “Filename too long” error in Git for Windows often occurs due to path length restrictions. Despite enabling core.longpaths in Git-1.9.0-preview20140217, users may still face issues when working with deeply nested directories, such as those generated by tools like Yeoman.
To fix this, run the following command in a terminal with administrator privileges:
bash
git config --global core.longpaths true
This setting allows Git to handle long file paths. Remember to modify .gitignore files appropriately to exclude deeply nested directories when possible.