This is a small set of notes I took looking over some best practices for git.


  • Atomic
  • Consistent
  • Incremental
  • Documented


Popping the last stashed item: git stash pop

Commit Message

This client-side hook validates the commit message to make sure it is formatted correctly. It can be installed with wget --show-progress --quiet -0 .git/hooks/commit-msg then grant execution rights with chmod a+x .git/hooks/commit-msg.

Trail of Commits

We can re-write history to make sure we leave a good trail of commits. We do this with an interactive rebase.


I like coding, philosophy, and coffee. 👋

I like coding, philosophy, and coffee. 👋