简体   繁体   中英

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.

I have branch named DevInt which we use for developer integration.

I have another feature branch which we will call 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.

So now the Feature1 branch is behind and I want to bring it forward so that it is at the same position as DevInt.

What is the correct way to do this?

from your feature branch:

git fetch

git rebase origin/DevInt

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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