Reputation: 42185
I have the following warnings from git that are causing Git Extensions to crash when I go to view my current modified files:
warning: unable to access 'mysolution.mobile/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/node_modules/validate-npm-package-license/node_modules/spdx-correct/node_modules/spdx-license-ids/.gitignore': Filename too long
I can see the warnings when I view git status
in the command line
I thought about navigating Windows Explorer to the directory, but when i do there is no .gitignore file there.
The only files in the folder are
LICENSE
package.json
README.md
spdx-license-ids.json
What should I do about this?
I don't particularly care about committing the node stuff to my repository, so I could add this location to another .gitignore. However, I've read that it's preferable to commit the node stuff.
edit
Interestingly, when I try the following with the command line:
git add mysolution.mobile/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/node_modules/validate-npm-package-license/node_modules/spdx-correct/node_modules/spdx-license-ids/.gitignore
It returns the following error:
fatal: pathspec 'mysolution.mobile/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/node_modules/validate-npm-package-license/node_modules/spdx-correct/node_modules/spdx-license-ids/.gitignore' did not match any files
did not match any files
Why does it claim to be an unstaged file if it can't find it?
Upvotes: 3
Views: 2580
Reputation: 250
This command should be run on your git directory.
git config --system core.longpaths true
Alternatively, you can change this option in your git config file.
Upvotes: 0