赞
踩
使用命令新建分支并切换到该分支
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
以上两行命令可简写为
git push -u origin feature/wangshuang-map
即将本地分支推送到远程,然后把本地分支feature/wangshuang-map与远程仓库origin里的分支feature/wangshuang-map建立关联
建立关联后再次执行git pull命令则成功
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。