# Cheat Sheet (tiimgreen/github-cheat-sheet)

> Lesser-known features of Git and GitHub, explained with short examples.

- Source: https://github.com/tiimgreen/github-cheat-sheet (read at commit 746af1b on 2026-11-30). The selection and order are its curators'.
- This index: https://weeklymatcha.com/lists/tiimgreen/github-cheat-sheet
- 52 entries in 46 sections. 60,688 stars. Last push 2024-04-15. Licence MIT.
- Facts are from GitHub as of 2026-11-30. No descriptions are copied from the list.

## GitHub

### Ignore Whitespace

- [Read more about GitHub secrets.](https://github.com/blog/967-github-secrets) · https://weeklymatcha.com/item/2d5bd64c75

### Commit History by Author

- [Read more about the differences between commits views.](https://help.github.com/articles/differences-between-commit-views) · https://weeklymatcha.com/item/f5b26bbbdf

### Cloning a Repository

- [Read more about the Git clone command.](http://git-scm.com/docs/git-clone) · https://weeklymatcha.com/item/eebfd1653b

### Branch

#### Comparing Branches

- [Read more about comparing commits across time.](https://help.github.com/articles/comparing-commits-across-time) · https://weeklymatcha.com/item/049a679f60

### Gists

- [Gists](https://gist.github.com/) · in 2 lists · https://weeklymatcha.com/item/fd6f0ca4e0

### Git.io

- [Read more about Git.io.](https://github.com/blog/985-git-io-github-url-shortener) · https://weeklymatcha.com/item/37571a2761

### Keyboard Shortcuts

- [Read more about search syntax you can use.](https://help.github.com/articles/search-syntax) · https://weeklymatcha.com/item/fb348718cf

### Closing Issues via Commit Messages

- [Read more about closing Issues via commit messages.](https://help.github.com/articles/closing-issues-via-commit-messages) · https://weeklymatcha.com/item/d693fea572

### Locking Conversations

- [Read more about locking conversations.](https://github.com/blog/1847-locking-conversations) · https://weeklymatcha.com/item/7672a4230a

### CI Status on Pull Requests

- [Read more about the commit status API.](https://github.com/blog/1227-commit-status-api) · https://weeklymatcha.com/item/0ea54d617c

### Filters

- [For the Rails repo](https://github.com/rails/rails/issues) · https://weeklymatcha.com/item/62be424550
- [Read more about searching issues.](https://help.github.com/articles/searching-issues) · https://weeklymatcha.com/item/9bcc15663d
- [Read more about searching on the Status API.](https://github.com/blog/2014-filter-pull-requests-by-status) · https://weeklymatcha.com/item/226af84aab

### Syntax Highlighting in Markdown Files

- [Read more about GitHub Flavored Markdown.](https://help.github.com/articles/github-flavored-markdown) · https://weeklymatcha.com/item/a94d3b54ee

### Quick Quoting

- [Read more about quick quoting.](https://github.com/blog/1399-quick-quotes) · https://weeklymatcha.com/item/6149a04825

### Pasting Clipboard Image to Comments

- [Read more about issue attachments.](https://help.github.com/articles/issue-attachments) · https://weeklymatcha.com/item/ed569320eb

### Quick Licensing

- [Read more about open source licensing.](https://help.github.com/articles/open-source-licensing) · https://weeklymatcha.com/item/6118c27ecf

### Task Lists

- [Read more about task lists.](https://help.github.com/articles/writing-on-github#task-lists) · https://weeklymatcha.com/item/d3b7ae2849

#### Task Lists in Markdown Documents

- [Read more about task lists in markdown documents.](https://github.com/blog/1825-task-lists-in-all-markdown-documents) · https://weeklymatcha.com/item/0e38292a81

### Relative Links

- [Read more about relative links.](https://help.github.com/articles/relative-links-in-readmes) · https://weeklymatcha.com/item/0fe8c76c40

### Metadata and Plugin Support for GitHub Pages

- [Read more about repository metadata and plugin support for GitHub Pages.](https://github.com/blog/1797-repository-metadata-and-plugin-support-for-github-pages) · https://weeklymatcha.com/item/46792f2b1f

### Viewing YAML Metadata in your Documents

- [Read more about viewing YAML metadata in your documents.](https://github.com/blog/1647-viewing-yaml-metadata-in-your-documents) · https://weeklymatcha.com/item/e9a92e5ce8

### Rendering Tabular Data

- [Read more about rendering tabular data.](https://github.com/blog/1601-see-your-csvs) · in 2 lists · https://weeklymatcha.com/item/8aca3b82aa

### Rendering PDF

- [Read more about rendering PDF.](https://github.com/blog/1974-pdf-viewing) · in 2 lists · https://weeklymatcha.com/item/0aa0e201e9

### Revert a Pull Request

- [Read more about reverting pull requests](https://github.com/blog/1857-introducing-the-revert-button) · https://weeklymatcha.com/item/78eb84e2f7

### Diffs

#### Rendered Prose Diffs

- [Read more about rendered prose diffs.](https://github.com/blog/1784-rendered-prose-diffs) · https://weeklymatcha.com/item/45139e255c

#### Diffable Maps

- [Read more about diffable maps.](https://github.com/blog/1772-diffable-more-customizable-maps) · https://weeklymatcha.com/item/d56b310c29

#### Expanding Context in Diffs

- [Read more about expanding context in diffs.](https://github.com/blog/1705-expanding-context-in-diffs) · https://weeklymatcha.com/item/8e2a65475b

#### Rendering and diffing images

- [Read more about rendering and diffing images.](https://help.github.com/articles/rendering-and-diffing-images) · https://weeklymatcha.com/item/f9ccb02e14

### Hub

- [Hub](https://github.com/mislav/hub) · Go · 22,958 stars · pushed 2024-02-02 · MIT · in 6 lists · quiet · https://weeklymatcha.com/gh/mislav/hub
- [Check out some more cool commands Hub has to offer.](https://github.com/mislav/hub) · Go · 22,958 stars · pushed 2024-02-02 · MIT · in 6 lists · quiet · https://weeklymatcha.com/gh/mislav/hub

### Contribution Guidelines

#### CONTRIBUTING File

- [Read more about contributing guidelines.](https://github.com/blog/1184-contributing-guidelines) · https://weeklymatcha.com/item/6c94ee84c8

#### ISSUE_TEMPLATE file

- [Read more about issue templates.](https://github.com/blog/2111-issue-and-pull-request-templates) · https://weeklymatcha.com/item/9a604d8b7f
- [Issue template file generator](https://talater.com/open-source-templates) · in 2 lists · https://weeklymatcha.com/item/00d3b78dbe

#### PULL_REQUEST_TEMPLATE file

- [Read more about pull request templates.](https://github.com/blog/2111-issue-and-pull-request-templates) · https://weeklymatcha.com/item/9a604d8b7f
- [Pull request template file generator](https://talater.com/open-source-templates) · in 2 lists · https://weeklymatcha.com/item/00d3b78dbe

### Octicons

- [Read more about GitHub's Octicons](https://octicons.github.com/) · in 3 lists · https://weeklymatcha.com/item/edce3fd866

### GitHub Student Developer Pack

- [Read more about GitHub's Student Developer Pack](https://education.github.com/pack) · in 3 lists · https://weeklymatcha.com/item/e2f0fd458f

### SSH keys

- [e.g.](https://github.com/tiimgreen.keys) · https://weeklymatcha.com/item/0eaeac3b2f
- [Read more about accessing public ssh keys.](https://changelog.com/github-exposes-public-ssh-keys-for-its-users) · https://weeklymatcha.com/item/92d46e90aa

### Profile Image

- [e.g.](https://github.com/tiimgreen.png) · https://weeklymatcha.com/item/94ec3d0fd6

### Repository Templates

- [Read more about using repositories as templates](https://github.blog/2019-06-06-generate-new-repositories-with-repository-templates) · https://weeklymatcha.com/item/762b00a169

## Git

### Previous Branch

- [Read more about Git branching.](http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging) · https://weeklymatcha.com/item/948f0e3888

### Stripspace

- [Read more about the Git stripspace command.](http://git-scm.com/docs/git-stripspace) · https://weeklymatcha.com/item/173791ba8d

### Checking out Pull Requests

- [Read more about checking out pull requests locally.](https://help.github.com/articles/checking-out-pull-requests-locally) · https://weeklymatcha.com/item/b33da9414e

### Styled Git Status

- [Read more about the Git status command.](http://git-scm.com/docs/git-status) · https://weeklymatcha.com/item/6020e32220

### Styled Git Log

- [Read more about the Git log command.](http://git-scm.com/docs/git-log) · https://weeklymatcha.com/item/48b550987a

### Git Grep

- [Read more about the Git grep command.](http://git-scm.com/docs/git-grep) · https://weeklymatcha.com/item/731330d36e

### Merged Branches

- [Read more about the Git branch command.](http://git-scm.com/docs/git-branch) · https://weeklymatcha.com/item/3584538dd7

### Fixup and Autosquash

- [Read more about the Git commit command.](http://git-scm.com/docs/git-commit) · https://weeklymatcha.com/item/0b4a121bc1

### Web Server for Browsing Local Repositories

- [Read more about the Git instaweb command.](http://git-scm.com/docs/git-instaweb) · https://weeklymatcha.com/item/56e09db680

### Git Configurations

#### Color

- [Read more about the Git config command.](http://git-scm.com/docs/git-config) · https://weeklymatcha.com/item/ab4c78b665
