Notes about things

A collection of my notes. Provided as is with no warranty of any kind expressed or implied.

Squashing git commits

One liner to squash the last n commits. Don't do this if you've already pushed commits upstream. Rewriting history isn't cool.

git reset --soft HEAD~3 && git commit -m"Squashing last 3 commits"

Example given above is for the last 3 commits.