Intellij is merging two folders with the same name

  git, macos, windows

So i have two folders named "Folder1" and "folder1" in my git repository.
But when i pull them onto IntelliJ For some reason it is merging both the folders into one named "IntelliJ".

For example:

if Folder1 has a file File1
and folder1 has a file File2
it creates a single Folder1 with both File1 and File2 in it.

I tried looking for the solution everywhere on the internet but it seems no one else ever encountered this problem before.

I am looking for a way so that this doesn’t happen automatically.

Thanks in Advance. 🙂

Source: Windows Questions