我已经克隆一个Git仓库,然后检查了一个标签:git的结帐标签,混帐拉分支
# git checkout 2.4.33 -b my_branch
这是确定的,但是当我尝试运行我的分支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 new origin/<branch>
我想git pull
只更新master分支并独自离开我现在的分支(这是一个标签反正)。是这样的可能吗?
我之所以需要这个是我总是git的拉库,当然,因为上述错误的失败时自动脚本..
可能重复[git pull:没有当前分支的跟踪信息](http://stackoverflow.com/questions/32056324/git-pull-there-is-no-跟踪信息为当前分支) – daisy 2016-07-21 14:52:20