Whenever I try to pull or sync from git in visual studio, I get the error
The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
The local path where my repository is located : C:\Users\user3008\Documents\Projects\clientconsultancyservice\ClientConsultancyInterface
Both the .vs and .gitignore files are saved in the above directory. I never faced this issue in VS 2015 and have recently upgraded to VS2019.
What I have tried so far:
- Updating Visual Studio
- Updating GitHub Extension
Relevant Details:
Visual Studio 2019 Professional v16.4.5
GitHub Extension for Visual Studio v2.10.8.8132

C:\GitSourcedirectly instead ofC:\Users\user3008\Documents\Projects\clientconsultancyservice\ClientConsultancyInterface. The error is due to limitation of filname in dos, it has nothing to do with VS or GIt.git config --system core.longpaths true