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

Commits

  • Atomic
  • Consistent
  • Incremental
  • Documented

Stashing

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 http://git.io/validate-commit-msg --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.

Rebase

I like coding, philosophy, and coffee. 👋

I like coding, philosophy, and coffee. 👋