zhiqiang zhiqiang - 4 months ago 18
Git Question

my local git repository not same my remote repository

my github remote repository directory is

远端仓库目录

but when i

git clone
my repository local directory

本地仓库目录

how can i resolve this directory not same?And local directory is my need.

i try

git pull origin master


git merge origin master


git push origin master


but that problem not resolved,please help me ,what can i do ?

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.