1、git pull时报错fatal: refusing to merge unrelated histories
这个问题是说两个不相干的仓库,一个是远程仓库,一个是本地仓库,解决方法:
1、可以通过手动拉取远程仓库,把本地仓库放进去,push就可以,
2、还可以通过命令:git pull origin master --allow-unrelated-histories
2、git pull时提示There is no tracking information for the current branch.
1、可以通过直接指定远程分支
git pull origin master
2、可以通过指定本地分支关联远程分支,再进行git pull
git branch --set-upstream-to=origin/<branch> <branch>