Git squash history after merge

I was able to squash several commits after multiple merges from the master branch using the strategy found here: https://stackoverflow.com/a/17141512/1388104 git checkout my-branch # The branch you want to squash git branch -m my-branch-old # Change the name to something old git checkout master # Checkout the master branch git checkout -b my-branch # Create … Read more

What are the differences between `–squash` and `–no-ff –no-commit`?

The differences These options exists for separate purposes. Your repository ends up differently. Let’s suppose that your repository is like this after you are done developing on the topic branch: –squash If you checkout master and then git merge –squash topic; git commit -m topic, you get this: –no-ff –no-commit Instead, if you do git … Read more