git version 1.7.7.4
I have two branches development and testing.
Originally testing was created from development.
I have only been working on testing. So now my testing branch has a lot of differences compared to development.
Because the testing now has my latest changes I want make development the same as testing.
So I did the following to merge them.
git checkout development
git merge -s recursive -Xtheirs testing
However, when I get the difference between the two branches. There are still a lot of differences.
So I decided to reset the development branch and try again by doing the following:
git merge testing
However, I still get the same differences.
If I try and merge again without reseting. I get already up-to-date.
Is there any way I can make the development branch the same as the testing branch?
Many thanks for any advice,
After merging
developmentontotesting,developmentwill gain all the changes fromtestingbuttestingwill have none of the changes ondevelopment. The graph will look something like:See that
testinganddevelopmentare on different revisions.To merge them they have the same changes you could do:
The graph should now look like:
If you want to keep them separate, do
git merge --no-ff development.