Git merge did not go as expected

Asked

Viewed 336 times

2

Hello, I will try to be very practical in this my problem.

1 - Working on the 'fix' branch I ended up making changes to different things by mixing things up...

2 - Dai to try to 'improve' created a new child branch

git checkout -b correcao-banco

added the specific files of this new branch and commit!

3 - Dai back to the original branch

git checkout correcao

4 - I added the remaining files and commit!

Now my goal would be to bring to master only the fixes from the 'fix' branch and nothing from the 'fix-bank' branch'.

5 - I went to the master

git checkout master

6 - I checked the merge

git merge correcao

Dai happened a merge that was not happy because it gave a fast forward and brought the changes of the 'fix-bank' together...

Apparently this is the expected behavior but not for me... I didn’t understand and now? I’ve got a way back to get the changes out of the bank'?

Thank you.

  • If the answer helped, signal us.

1 answer

1


  • Good to know that the process I’ve accomplished is the right one, I probably did something else 'wrong' that I can’t remember.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.