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/<远程分支名> <本地分支名>
更多推荐
git There is no tracking information for the current branch 本地新建分支并推送到远程库问题
发布评论