I use sourcetree to manage my example project source files on windows 10, and it use git version control system. But when i commit or merge my project files, it shows Filename too long error like below. After investigate, in finally find the method to fix it.
1. Fix Filename Too Long Error When Use Git On Windows 10 Steps.
- First you should make sure your windows 10 has enabeled long file path support. You can refer article How To Enable Win10 Long File Path.
- Then open a terminal and run command
git config --global core.longpaths true.
- Now when you run sourcetree to commit source code through git again, the error will disappear.