Learn

Git Cheatsheet Guide

About this tool

A searchable reference for the Git commands that come up less often: undoing a commit, recovering a deleted branch, rewriting history, and finding which commit introduced a line.

Questions

Is it safe to run these commands?
Read what each one does first. The entries that rewrite history are marked, because on a shared branch they affect everyone who has pulled it.