I've searched a lot but didn't find a similar question.
Let's say that I have two branches. Branch S (stable) and branch E (experimental). Experimental has been created "from" Stable branch.
I'm working all the time on E branch by executing
git add -A . git commit -m "my new commit" git push origin E And it works just fine. When I think it's time for that I'm simply doing:
git checkout S git merge E git push origin S And that works fine as well but my stable branch is spammed with every single commit from experimental branch. I don't want to "squash" all commits into one in experimental branch but I want to have only one commit during such merge instead of all single ones.
Probably there is a very simple command for doing that but I didn't find it. Unfortunately git rebase E doesn't do the trick, all commits are still showed as single ones.
Thank you for your time.