Skip to content

Instantly share code, notes, and snippets.

@fpl9000
fpl9000 / git-cheat.txt
Last active May 10, 2023 17:41
Git Cheat Sheet
Git Cheat Sheet
Author: Fran Litterio <flitterio -at- gmail.com>
Things to do:
- Show Git commands throughout the 'Basic Concepts' and 'Advanced Concepts' sections.
- Stashing: https://git-scm.com/book/en/v2/Git-Tools-Stashing-and-Cleaning
- Revision specification syntax: https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection
- man gitrevisions
- Reflog syntax: HEAD@{n}, HEAD@{yesterday}, HEAD@{2.months.ago}, ...