Solution:
git pull origin master --allow-unrelated-histories
git branch --track master origin/master
or
git branch --set-upstream-to master origin/master
Read More:
- [Solved] Git Error: fatal: refusing to merge unrelated histories
- [Solved] Git error: refname refs/heads/master not found
- Git pull and Git pull origin master Warning: Pulling without specifying how to reconcile divergent branches
- Git Error: refusing to merge unrelated histories [How to Solve]
- error: src refspec master does not match any. [How to Solve]
- [Solved] Git Error: fatal: refusing to merge unrelated histories
- [Solved] idea git Update failed unable to access ‘httpxxx‘ The requested URL returned error: 500
- [Solved] Git error: inflate: data stream error (invalid block type) error: corrupt loose object
- Git fatal: No configured push destination. Either specify the URL from the command-line or co
- Local repository upload to remote repository error: failed to push some refs to ‘https://hub.fastgit.org/zhizhangxuezhang/ui-test.git‘
- [Solved] Git submits locally to the remote warehouse Error: failed to push some refs to…
- [Solved] error: failed to push some refs to ‘https://gitee.com/wangdxstudy/mygirl.git‘
- [Solved] git Error: error: dst refspec v0.10.2 matches more than one
- [Solved] Mac Install homebrew Error: error: Not a valid ref: refs/remotes/origin/master
- Git Pull error: Your local changes to the following files would be overwritten by merge:
- error: src refspec master does not match any [How to Solve]
- How to Solve Git Error: error: failed to push some refs to……
- Git Push Error: failed to push some refs to ‘[email protected]:
- How to Solve Git submodule update error
- error: src refspec master does not match any [How to Solve]