Encountering error while cloning project in IntelliJ IDE

Hi, I am using IntelliJ 2019.3.
I was trying to clone s a GIT repository using INTELLIj IDE. The steps I performed were :
VCS-> Get from Version Control-> I filled in the repository URL and chose the Directory to store the codes-> Clone. But when I did so,I did not manage to get the codes into my local and an error appears in my bottom right corner:
INTELLIj - GIT errror window

The error message is “Cannot Run Git
error launching git: The filename or extension is too long.”. Can someone kindly assist. Thank you very much. Please let me know if you need more information.

This looks like an issue with git and Intellij.
inside the terminal in Intellij or a command prompt run git --version
you should get something like this:

C:\Users\zburnett\WebstormProjects\fubar>git --version
git version 2.29.2.windows.2

If that works try updating git’s config to allow for long paths:
git config --system core.longpaths true
Try cloning again, and if that fails the only thing left I can think of is uninstall git and reinstall git.