码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-08-26 11:30:00      阅读:519      评论:0      收藏:0      [点我收藏+]

标签:pull   already   upd   track   rem   git   color   his   blog   

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.

 

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

标签:pull   already   upd   track   rem   git   color   his   blog   

原文地址:http://www.cnblogs.com/skyessay/p/7434702.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!