Git clone through IntelliJ (Windows) fails with "Filename too long" warning -- how to configure for Git?
Answered
On Windows 10, using the Intellij IDEA 2023.1.1 version, I tried to use (File, Project from Version Control) option to load a git repo. It failed because its directory tree is very long in places.
I can succeed on the command line through “git clone -c core.longpaths=true …”.
How do I tell IntelliJ to do something like that when using version control?
Please sign in to leave a comment.
Hi,
Please see: https://youtrack.jetbrains.com/issue/IDEA-286709/Automatically-fix-filename-is-too-long-during-checkout-on-windows
If you set “core.longpaths = true” in your global git config, it should work without issues.
Have you ever tried this tool, I would Recommend here a tool named as LongPathTool. I am quite sure It Will work
I will suggest LongPathTool to solve this error
LongPathTool helps handle long file paths that block Git operations on Windows.