gitlab合并分支后需要提交吗_gitlab创建merge请求:从master合并到foo分支后的问题...

场景: 同事发了一个版(我需要其中部分代码),提交合并到主分支,然后我的分支也提交到主分支,然后再将主分支上的代码合并到我的分支(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

If you wish to set tracking information for this branch you can do so with:

git branch --set-upstream-to=origin/ 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.

到此,问题解决

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值