美文网首页
解决远程冲突

解决远程冲突

作者: __freetime | 来源:发表于2017-05-21 19:03 被阅读26次

在Github上新建一个带有Readme.md的仓库,并且第一次将它pull到本地新的仓库时,经常出现

$ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master


解决方法:

git pull origin [branchname] --allow-unrelated-histories

参考:http://stackoverflow.com/questions/37937984/git-refusing-to-merge-unrelated-histories/40107973#40107973

相关文章

网友评论

      本文标题:解决远程冲突

      本文链接:https://www.haomeiwen.com/subject/qervxxtx.html