Error:

Getting the following error when trying to clone a project in TortoiseGit or Visual Studio…

error: unable to create file xxxxxxx: Filename too long

Fix:

Location your .gitconfig file

C:\Windows\System32>git config --list --show-origin --show-scope

Open up the .gitconfig file and add “longpaths = true”

[user]
	name = John Doe
	email = JohnDoe@mycompany.com
[core]
	longpaths = true
	
Last modified: September 10, 2024

Author

Comments

Write a Reply or Comment