如何快速推进分支? [英] How to fast-forward a branch to head?
本文介绍了如何快速推进分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您的分支由167次提交后的origin / master支持,并且可以被快速转发。
我试过了:
git checkout HEAD
它没有效果。这是因为我已经在master上签出了一个中间提交。
如何让主人保持头脑清醒?
解决方案
git checkout master
git pull origin
将读取并合并 origin / master
分支(你可以简单地说 git pull
,原点是默认值)。
I switch to master after develop on a branch for a long time. The log shows:
Your branch is behind 'origin/master' by 167 commits, and can be fast-forwarded.
I tried:
git checkout HEAD
It has no effect. This is cause because that I have checkout out an intermediate commit on master.
How to make master stay on head?
解决方案
Doing:
git checkout master
git pull origin
will fetch and merge the origin/master
branch (you may just say git pull
as origin is the default).
这篇关于如何快速推进分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文