Sergio0694
Sergio0694

Reputation: 4567

Git showing unwanted folder that isn't there when cloning repo

I'm working on a repo on GitHub and I'm seeing an odd behavior, I'm probably missing something here. When I open the repo on the website, I see an "APIS" folder that isn't supposed to be there:

enter image description here

The only folder should be the "APIs" folder. If I clone the repo, that "APIS" folder isn't actually there (as I remember renaming it a while ago, even if it's still there on the website).

enter image description here

So, my questions are:

If it helps, this is the link to the repo: https://github.com/Sergio0694/NeuralNetwork.NET/tree/master/NeuralNetwork.NET.Cuda

Thanks for your help!

Upvotes: 1

Views: 67

Answers (1)

EdH
EdH

Reputation: 3293

You are on Windows. And Windows treats APIs and APIS the same. So git is overwriting your APIS folder on checkout with APIs.

See: File paths in Windows environment not case sensitive?

To get rid of the folder you will need to checkout the folder on Linux (or an OS without this behavior), and then delete the folder there.

I cloned it on Linux, and it had both folders. You might also try Windows Bash prompt which uses Windows Subsystem for Linux, and it also has the case sensitive behavior you need (which I also verified). Just install git inside the Ubuntu Bash Windows Shell, via sudo apt-get install git.

Upvotes: 1

Related Questions