简体   繁体   English

如何在GIT中前进分支

[英]How to move a branch forward in GIT

I'm new to Git and I would like to know how to move a branch forward. 我是Git的新手,我想知道如何前进分支。

I have branch named DevInt which we use for developer integration. 我有一个名为DevInt的分支,我们用于开发人员集成。

I have another feature branch which we will call Feature1. 我有另一个功能分支,我们将其称为Feature1。

I've merged the changes in the Feature1 branch into the DevInt branch, however, there have been other changes to DevInt since the Feature1 branch was created. 我已经将Feature1分支中的更改合并到DevInt分支中,但是,自创建Feature1分支以来,对DevInt进行了其他更改。

So now the Feature1 branch is behind and I want to bring it forward so that it is at the same position as DevInt. 所以现在Feature1分支在后面,我想将其前进,以便它与DevInt处于同一位置。

What is the correct way to do this? 正确的方法是什么?

from your feature branch: 从功能分支中:

git fetch git获取

git rebase origin/DevInt git rebase origin / DevInt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM