zoukankan      html  css  js  c++  java
  • git提示:There is no tracking information for the current branch

    问题

    使用git pull拉取远程分支代码的时候,提示:
    > There is no tracking information for the current branch.
    Please specify which branch you want to merge with.
     
    这个报错的意思是:新建的本地分支在推送远程仓库时,本地的分支与远程分支没有建立关联。

    查看关联

    git branch -vv:可以查看本地分支与远程仓库的关联关系
    可以看到并没有关联
    关联后:
     

    解决

    按照git给的提示git branch --set-upstream-to=origin/SP_4.2.1_20200703_alpha
    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
     
    If you wish to set tracking information for this branch you can do so with:
        git branch --set-upstream-to=origin/<branch> dev
     
     
     

      读后有收获,小礼物走一走,请作者喝咖啡。

    赞赏支持

  • 相关阅读:
    mysql复习相关
    OpenStack三种类型的NAT转换
    openstack资料相关
    [转]Web 调试工具之 Advanced REST client
    [转]Aspose.Words.dll 将 Word 转换成 html
    [Android] 开发第十天
    [win10]遇坑指南
    [转]Explorer.exe的命令行参数
    [Android] 开发第九天
    [Android] 开发第八天
  • 原文地址:https://www.cnblogs.com/east7/p/15202829.html
Copyright © 2011-2022 走看看