Version without fear, fix without panic.
Git: essential commands
Cheatsheet of the Git commands you need: setup, daily cycle, branches, inspection and classic pitfalls.
Git: undo (almost) anything
Restore, reset, revert, reflog: the right Git command to undo each kind of mistake without breaking shared history.