git – How to squash all commits on branch – Stack Overflow

You want to take your work from “my_new_feature” to “my_new_feature_squashed” So just do (while on your new branch we created off develop): git merge –squash my_new_feature All your changes will now be on your new branch, feel free to test it, then just do your 1 single commit, push, new PR of that branch – and wait for repeat the next day.

Read More