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
- Git Pull error: Your local changes to the following files would be overwritten by merge:
- Local repository upload to remote repository error: failed to push some refs to ‘https://hub.fastgit.org/zhizhangxuezhang/ui-test.git‘
- Git: How to Solve Error: Please commit your changes or stash them before you merge.
- [Solved] git Error: error: Your local changes to the following files would be overwritten by merge
- Git Pull Error:The following untracked working tree files would be overwritten by merge
- [Solved] IDEA Git Update Error: Master has no tracked branch
- Git pull and Git pull origin master Warning: Pulling without specifying how to reconcile divergent branches
- Git Push Error: failed to push some refs to ‘[email protected]:
- [Solved] Git submits locally to the remote warehouse Error: failed to push some refs to…
- How to Solve Git Error: error: failed to push some refs to……
- [Solved] error: failed to push some refs to ‘https://gitee.com/wangdxstudy/mygirl.git‘
- Git Push Error: error: failed to push some refs… hint: Updates were rejected because the remote…
- [Solved] Git error: inflate: data stream error (invalid block type) error: corrupt loose object
- How to Fix Error Cannot find command ‘git‘ – do you have ‘git‘ installed and in your PATH?
- Git fatal: No configured push destination. Either specify the URL from the command-line or co
- [Solved] Neo4j error: Cannot merge the following node because of null property value for ‘casualty’
- How to Solve Error: cannot open .Git/fetch_HEAD: Permission denied
- [Solved] Doris StreamLoad Error: load by MERGE or DELETE need to upgrade table to support batch delete