解决无法Git的问题:There is no tracking information for the current branch. Please specify which branch...
错误提示[root@vps project]# git pullThere is no tracking information for the current branch.Please specify which branch you want to merge with.See git-pull(1) for detailsgit pull <remote> <branch
·
错误提示
[root@vps project]# git pull
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> master
解决步骤
输入
git branch --set-upstream-to=origin/master
git remote add origin 你的仓库地址例如git@github.com:xxx/yyy.git
git pull
示意图
更多推荐
所有评论(0)