Reputation: 2008
I have following use case.
Now I want to merge all these 20 commits into single commit and move this to mainline. How exactly I can do this?
Thanks in Advance,
Shantanu
Upvotes: 6
Views: 4050
Reputation: 1324278
That sounds like a git merge --squash
git checkout mainline
git merge --squash dev
git commit
Note that, as commented here, it is best to merge mainline
in dev
first and solve any conflict there, before merging back dev
in mainline
.
Upvotes: 10