R
R
Richard Smith2020-06-04 15:41:09
git
Richard Smith, 2020-06-04 15:41:09

How to pull changes from parent branch to child branch?

Good afternoon. I have 2 branches(branchOne, branchTwo)
I made changes to branchOne branch and pushed to remote repository. How can I pull the latest changes I made in branchOne into branchTwo (this branch is a child of branchOne)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2020-06-04
@Klimsava

git checkout branchTwo
git rebase branchOne
You can use merge instead of rebase, but there is a chance to get a confusing history

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question