How To Fix Filename Too Long Error When Use Git On Windows 10

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.

windows 10 git filename too long error

1. Fix Filename Too Long Error When Use Git On Windows 10 Steps.

  1. 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.
  2. Then open a terminal and run command git config --global core.longpaths true.
  3. Now when you run sourcetree to commit source code through git again, the error will disappear.
READ :   How To Install Virtualbox Extension Pack Correctly

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.