I have a master branch and multiple test branches. I need to create a local test(some branch)branch and merge all the existing test branches into the newly created local branch and resolve the conflicts.
So far, I have created a local branch after cloning as follows:
git clone <remote url>git branch <some branch>Now, how do I proceed further? I new to git. Help would be appreciated.
Assuming you want to base your merge-target branch off master, you could try the following:
git checkout master
git checkout -b test-merge # create the new branch
And then just merge each of the test branches into test-merge:
git merge test1
# resolve conflicts, commit
git merge test2
# resolve again, etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With