How can I squash a range of git commits together given starting and ending SHA’s
If the first SHA is HEAD you can also use this approach: git reset –soft $OLD_SHA; git add -A; git commit –amend –no-edit be careful, this command will change the history of the repo. If you want to squash commits that are in the middle of your history: |—* — 0 — 1 —- 2 … Read more