- 错误一
Can‘t Update
No tracked branch configured for branch master or the branch doesn‘t exist.
To make your branch track a remote branch call, for example,
git branch --set-upstream-to=origin/master master (show balloon)
本地分支未跟远程分支关联
$ git branch --set-upstream-to=origin/master
#Branch ‘master‘ set up to track remote branch ‘master‘ from ‘origin‘.
- 错误二
fatal: refusing to merge unrelated histories
由于是后执行本地分支关联远程分支,提交历史无关联,两个分支具有不同版本
#允许不同版本合并
git pull origin master --allow-unrelated-histories
git push origin master
原文:https://www.cnblogs.com/jinit/p/14136548.html