Can't update: no tracked branch No tracked branch configured for branch dev.

1.git pull 命令出现以下错误

$ 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> dev

2.按照提示设置

git branch --set-upstream-to=origin/dev

3.再 git pull 时提示成功

$ git pull
Already up-to-date.

 

文章来自:http://www.cnblogs.com/skyessay/p/7434702.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3