Git出现There is no tracking information for the current branch提示的解决办法
使用命令新建分支并切换到该分支
git checkout -b feature/wangshuang-map
从远程获取代码
git pull
报错
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
意思是没有当前分支的追踪信息
解决:
git push origin feature/wangshuang-map
git branch --set-upstream-to=origin/feature/wangshuang-map feature/wangshuang-map
以上两行命令可简写为文章来源:https://www.toymoban.com/news/detail-522676.html
git push -u origin feature/wangshuang-map
即将本地分支推送到远程,然后把本地分支feature/wangshuang-map与远程仓库origin里的分支feature/wangshuang-map建立关联
建立关联后再次执行git pull命令则成功文章来源地址https://www.toymoban.com/news/detail-522676.html
到了这里,关于Git出现There is no tracking information for the current branch提示的解决办法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!