Reason: the history submission of local warehouse and remote warehouse is different.
Solution: merge the history of the two warehouses -- allow unrelated history
git pull origin master --allow-unrelated-histories
Read More:
- [Solved] Git Error: fatal: refusing to merge unrelated histories
- [Solved] Git Error: fatal: refusing to merge unrelated histories
- Local repository upload to remote repository error: failed to push some refs to ‘https://hub.fastgit.org/zhizhangxuezhang/ui-test.git‘
- [Solved] IDEA Git Update Error: Master has no tracked branch
- Git Push Error: failed to push some refs to ‘[email protected]:
- error: src refspec master does not match any. [How to Solve]
- [Solved] Git error: inflate: data stream error (invalid block type) error: corrupt loose object
- How to Solve Git Error: error: failed to push some refs to……
- [Solved] Git submits locally to the remote warehouse Error: failed to push some refs to…
- hint: Updates were rejected because the remote contains work that you do To XXX
- Git Push Error: error: failed to push some refs… hint: Updates were rejected because the remote…
- Git fatal: No configured push destination. Either specify the URL from the command-line or co
- [Solved] error: failed to push some refs to ‘https://gitee.com/wangdxstudy/mygirl.git‘
- [Solved] Error: SRC refspec master doors not match any
- Git Pull Error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errfno 10054
- [Solved] Git error: refname refs/heads/master not found
- [Solved] error: Pulling is not possible because you have unmerged files
- Git pull and Git pull origin master Warning: Pulling without specifying how to reconcile divergent branches
- Git Pull error: Your local changes to the following files would be overwritten by merge: