GitHub Cheat Sheet

GitHub Cheat Sheet lists useful features and capabilities of Git and GitHub.

github.com/tiimgreen/github-cheat-sheet
GitHub Cheat Sheet homepage screenshot

About GitHub Cheat Sheet

GitHub Cheat Sheet is a README-based list of lesser-known features of Git and GitHub, maintained in the repository tiimgreen/github-cheat-sheet. It describes URL adjustments for GitHub diffs, commit histories, and branch comparisons, along with notes on cloning, branch management, and Git resources. The sheet is inspired by talks by Zach Holman and is available in English, Korean, Japanese, Simplified Chinese, and Traditional Chinese.

The sheet is a reference of tips rather than a tool. Several tricks depend on specific GitHub page URLs and do not work everywhere. For example, the tab-width setting does not apply to Gists or raw file views. The README also notes sponsorship by Snapshot, an AI product photo service that is unrelated to Git.

Key features

  • Add ?w=1 to a diff URL to hide whitespace-only changes
  • Add ?ts=4 to a diff or file URL to change tab display width
  • Add ?author={user} to a repository commits URL to filter commits by author
  • Edit a compare URL to compare two branches or a date-based range
  • Compare branches across forked repositories using a modified compare URL
  • Branches page lists branches not merged into the main branch, with compare and delete options
Best for: Developers who already use Git and GitHub and want to learn less-known web features for reviewing diffs, history, and branches.
Good for
  • Each tip includes a concrete URL pattern or example
  • Includes links to further reading on several topics
  • Available in several languages
Watch out for
  • The tab-width tip does not work on Gists or raw file views
  • The sheet is a list of tips, not an interactive tool

GitHub Cheat Sheet at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

GitHub Cheat Sheet alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

git-cheat-sheet

github.com/arslanbilal/git-cheat-sheet

This Git and Git Flow cheat sheet collects commands and reminders for common version control tasks.

Popular in Learn to Code

Well-known listings from the same topic.

All 387

GitHub Cheat Sheet FAQ

Does the tab-width trick work on every GitHub page?
No. Adding ?ts=4 does not work on Gists or raw file views, according to the README. The README says a Chrome extension can automate the setting.
How can I see only the code that changed in a diff?
Add ?w=1 to the diff URL. This removes changes that only involve whitespace.
What languages is the cheat sheet available in?
The README links to versions in English, Korean, Japanese, Simplified Chinese, and Traditional Chinese.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing