美文网首页
Git pull时链接远程仓库

Git pull时链接远程仓库

作者: 114105lijia | 来源:发表于2019-10-22 11:17 被阅读0次

    有一次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> developer
    

    按照提示,执行终端命令即可:

    git branch --set-upstream-to=origin/developer developer    //我这是链接分支
    

    相关文章

      网友评论

          本文标题:Git pull时链接远程仓库

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