Assuming following "workflow"
create branch master
add + commit some files
create and checkout branch dev
edit and commit several times with silly commit messages
checkout master
merge dev branch into master branch
in the last step is it possible to not introduce all the (silly) commit messages from the commits on the dev branch and just have one single commit message like e.g. "merged dev branch today"?
matthias
You want commit-squashing, which can be done in several ways:
git rebase -i
) is for you.--squash
option to git merge
, git rebase
and git pull
More about both topics can be found in Chapter 6 of the Pro Git book and in the man pages of the commands, linked above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With