git commit error "invalid path" "make_cache_entry failed for path" solution

When using git commit in Windows system, if an error is reported:

error: invalid path ‘xxxxx’
fatal: make_cache_entry failed for path ‘xxxxxx’

This is because NTFS in Windows systems has a path protection mechanism to prevent file system errors.
At this time, you can enter the root directory of your project and execute the git command:

git config core.protectNTFS false

It can be solved after execution

Guess you like

Origin blog.csdn.net/xjtarzan/article/details/126709810