Git: Allow Long Filenames in Windows Git

6/10/2020 10:09:16 PM

Git

Old school Windows filename limits are still haunting us today and you might run into them if using Git on Windows. If you receive the following Git error:

Filename too long

you can fix it by running the following Git command in an elevated (Run as Administrator) cmd.exe or Powershell prompt.

git config --system core.longpaths true