Is there a simple Git command to squash all commits with the same commit message to one commit in a new branch?
A simple command seems to me:
git merge --squash BRANCH_WITH_SAME_COMMIT_MESSAGES
The problem is that I created that branch from the develop branch. All our done tickets gets merged into develop. So during working on BRANCH_WITH_SAME_COMMIT_MESSAGES our workflow is to merge the develop into BRANCH_WITH_SAME_COMMIT_MESSAGES if a done ticket gets merged into develop.
The problem is that also all the other stuff from develop gets squashed, but I only want the commits squashed, that have the same commit message.
How can I do that?