当前位置:   article > 正文

git There is no tracking information for the current branch 本地新建分支并推送到远程库问题

there is no tracking information for the current branch. please specify whic

git 本地新建分支并推送到远程库时,报下列提示:

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> feature/paymore

意思大概是,远程服务器没有找到当前分支关联的对应代码,需要执行命令进行关联。

我本地分支名字是feature/paymore ,想同步到服务器的同名分支上,所以执行

 git branch --set-upstream-to=origin/feature/paymore feature/paymore

进行关联

语法为:git branch --set-upstream-to=origin/<远程分支名> <本地分支名>

 

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号