首页 > 其他 > 详细

gitlab创建merge请求:从master合并到foo分支后的问题

时间:2015-04-21 16:16:07      阅读:656      评论:0      收藏:0      [点我收藏+]

场景: 同事发了一个版(我需要其中部分代码),提交合并到主分支,然后我的分支也提交到主分支,然后再将主分支上的代码合并到我的分支(gitlab上进行的合并操作)。然后再在本地开发环境中的foo分支下执行pull操作,出现丢失跟踪信息的错误,导致无法更新gitlab对master合并到foo 的操作。(我承认,这个很绕=.=#,或许这是一个搓办法,希望大大给个好方法)

还好git给了个提示:If you wish to set tracking information for this branch you can do so with


> 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> foo



看到了,给了个提示:


> git branch --set-upstream-to=origin/foo foo

Branch front set up to track remote branch front from origin.

> git pull

Already up-to-date.

到此,问题解决



gitlab创建merge请求:从master合并到foo分支后的问题

原文:http://my.oschina.net/lxrm/blog/404472

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!