When I clone a remote repository using
git clone 'repo_url'git pullgit status
I get this message -
On branch master Your branch and 'origin/master' have diverged, and have 41 and 20 different commits each, respectively
When I use git pull -a I don't have this problem.
Can't sync data to a remote repo? with the boss and the master? How to fix it?
EDIT 1:
when I run the git -a branch: this is how it looks ...
$ git branch -a
* master remotes/origin/HEAD -> origin/master remotes/origin/clothes remotes/origin/dunnesBranch remotes/origin/master
EDIT 2:
It seems to me that origin / master does not indicate the last code ... I ran 'git clone', then git reset --hard origin/master and then "git pull", and he tried to merge, which caused conflicts. ..
I think ... the HEAD of the remote repo points to the last commit, origin / master points to another, older commit ... I can check this when I run git show ...
source share