GitHub Cheat Sheet 
A collection of cool hidden and not so hidden features of Git and GitHub. This cheat sheet was inspired by Zach Holman's Git and GitHub Secrets talk at Aloha Ruby Conference 2012 (slides) and his More Git and GitHub Secrets talk at WDCNZ 2013 (slides).
Shortlink: http://git.io/sheet
Read this in other languages: English, 한국어, 日本語, 简体中文, 正體中文.
GitHub Cheat Sheet is sponsored by Snapshot: create interactive professional-quality product photos using AI
Table of Contents
- GitHub
- Ignore Whitespace
- Adjust Tab Space
- Commit History by Author
- Cloning a Repository
- Branch
- Compare all Branches to Another Branch
- Comparing Branches
- Compare Branches across Forked Repositories
- Gists
- Git.io
- Keyboard Shortcuts
- Line Highlighting in Repositories
- Closing Issues via Commit Messages
- Cross-Link Issues
- Locking Conversations
- CI Status on Pull Requests
- Filters
- Syntax Highlighting in Markdown Files
- Emojis
- Images/GIFs
- Embedding Images in GitHub Wiki
- Quick Quoting
- Pasting Clipboard Image to Comments
- Quick Licensing
- Task Lists
- Task Lists in Markdown Documents
- Relative Links
- Metadata and Plugin Support for GitHub Pages
- Viewing YAML Metadata in your Documents
- Rendering Tabular Data
- Rendering PDF
- Revert a Pull Request
- Diffs
- Rendered Prose Diffs
- Diffable Maps
- Expanding Context in Diffs
- Diff or Patch of Pull Request
- Rendering and diffing images
- Hub
- Contribution Guidelines
- CONTRIBUTING file
- ISSUE_TEMPLATE file
- PULL_REQUEST_TEMPLATE file
- Octicons
- GitHub Student Developer Pack
- GitHub Resources
- GitHub Talks
- SSH keys
- Profile Image
- Repository Templates
- Git
- Remove All Deleted Files from the Working Tree
- Previous Branch
- Stripspace
- Checking out Pull Requests
- Empty Commits
- Styled Git Status
- Styled Git Log
- Git Query
- Git Grep
- Merged Branches
- Fixup and Autosquash
- Web Server for Browsing Local Repositories
- Git Configurations
- Aliases
- Auto-Correct
- Color
- Git Resources
- Git Books
- Git Videos
- Git Articles
GitHub
Ignore Whitespace
Adding ?w=1 to any diff URL will remove any changes only in whitespace, enabling you to see only the code that has changed.