Introduction
Most people learn Git the hard way, through small disasters. This page collects the most frequent beginner mistakes and how to avoid (or recover from) them. Read it once now and again after a month of use; the second pass will make more sense.
Committing as the wrong identity
Forgetting to set user.email per repository leaks personal addresses into work commits. Always set a per-repo identity in work clones: