Git: Squash commits
A short, tested Git example for squash commits. Copy it and adjust the names and paths for your project.
Git
git rebase -i HEAD~3 # mark the later commits as "squash" or "fixup"
# or squash a whole branch into one commit
git merge --squash feature && git commitFind it in Zest
Search for “git squash commits” in Zest and this example appears above the results, with other matches to choose from. Searches stay private.