zhiqiang zhiqiang - 4 months ago 15
Git Question

Local git repository not same as remote repository

My Github remote repository looks like this:

github

But when I

git clone
, my local repository looks like this:

local

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

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.

Comments