Git clone through IntelliJ (Windows) fails with "Filename too long" warning -- how to configure for Git?

已回答

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?

0

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. 

 

0

Have you ever tried this tool, I would Recommend here a tool named as LongPathTool. I am quite sure It Will work

0

I will suggest LongPathTool to solve this error

0

LongPathTool helps handle long file paths that block Git operations on Windows.

0

请先登录再写评论。