zhiqiang zhiqiang - 1 year ago 158
Git Question

Local git repository not same as remote repository

My Github remote repository looks like this:


But when I

git clone
, my local repository looks like this:


How can I resolve this directory not being the same? The local directory is what I want it to be.

I tried:

git pull origin master
git merge origin master
git push origin master

but that did not resolve the problem.

Answer Source

The problem is with the naming of the folders. The file system does not differ between different casing; so even if Git is able to keep track of the differences, it can’t communicate these difference to the file system.

Change names and try git pull origin master again. Best solution is to simply not use multiple folders with a conflicting name. Even on case-sensitive file systems, it will only make things more confusing.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download