# github-cheat-sheet | Tim Green | Knowledge Base | Instagit

A list of cool features of Git and GitHub.

GitHub Stars: 55.5k

Repository: https://github.com/tiimgreen/github-cheat-sheet

---

## Articles

### [When to Use Relative Links vs Absolute Links in GitHub README Files](/tiimgreen/github-cheat-sheet/relative-vs-absolute-links-in-github-readme-files)

Learn when to use relative links versus absolute links in GitHub READMEs. Master linking internal repo content and external resources for better project documentation.

- Tags: tutorial
- Published: 2026-03-06

### [How to Effectively Use Emojis in GitHub Commit Messages and Issue Descriptions](/tiimgreen/github-cheat-sheet/using-emojis-in-github-commit-messages-and-issues)

Learn to use emojis in GitHub commit messages and issue descriptions for visual context. Make project history scannable and searchable with shortcodes like :bug: and :sparkles:.

- Tags: best-practices
- Published: 2026-03-06

### [Methods for Converting a GitHub Repository to a Template for Reusable Boilerplate](/tiimgreen/github-cheat-sheet/converting-github-repository-to-template-for-reusability)

Convert GitHub repositories into reusable templates easily. Use the template repository option for simple boilerplate creation and programmatic generation via GitHub CLI or API.

- Tags: how-to-guide
- Published: 2026-03-06

### [How to Access User Public SSH Keys via GitHub API Endpoints](/tiimgreen/github-cheat-sheet/accessing-github-user-public-ssh-keys-via-api)

Discover how to access user public SSH keys via GitHub API endpoints. Learn to retrieve keys using both the REST endpoint and the legacy shortcut for easy access.

- Tags: how-to-guide
- Published: 2026-03-06

### [How to Generate GitHub Code URLs with Line Highlighting and Range Selection](/tiimgreen/github-cheat-sheet/github-code-urls-with-line-highlighting-and-range-selection)

Master GitHub code URL generation with line highlighting and range selection. Easily reference specific code snippets for reviews and documentation. Learn the simple `#L<number>` and `#L<start>-L<end>` syntax.

- Tags: how-to-guide
- Published: 2026-03-06

### [Git Branch --merged vs --no-merged: Essential Guide to Safe Branch Cleanup](/tiimgreen/github-cheat-sheet/git-branch-merged-vs-no-merged-for-cleanup)

Safely clean up your Git branches. Learn the difference between git branch --merged and --no-merged to prevent losing work and identify deletable branches.

- Tags: how-to-guide
- Published: 2026-03-06

### [What Is Git instaweb and How to Use It to Browse Local Repositories](/tiimgreen/github-cheat-sheet/git-instaweb-for-local-repository-browsing)

Discover Git instaweb a built-in command to browse local repositories in your browser at http//127.0.0.1:1234. Learn how to use this convenient tool to view your projects.

- Tags: deep-dive
- Published: 2026-03-06

### [Combining git commit --fixup and git rebase --autosquash for Cleaner Commits](/tiimgreen/github-cheat-sheet/git-commit-fixup-and-rebase-autosquash-combination)

Learn to combine git commit --fixup and git rebase --autosquash for cleaner commits. Automatically squash corrections into original commits for a linear history.

- Tags: how-to-guide
- Published: 2026-03-06

### [How to Use Git Grep with Regex Patterns and Boolean Operators for Powerful Code Search](/tiimgreen/github-cheat-sheet/git-grep-with-regex-and-boolean-operators)

Master Git grep for powerful code search. Learn to use regex patterns with boolean operators like AND OR NOT for complex searches across all Git revisions.

- Tags: how-to-guide
- Published: 2026-03-06

### [Using the Git Stripspace Command Effectively for Cleaning Whitespace](/tiimgreen/github-cheat-sheet/using-git-stripspace-for-whitespace-cleanup)

Master the git stripspace command to effectively clean whitespace by stripping trailing spaces, collapsing blank lines, and ensuring file endings. Learn how to normalize your code.

- Tags: tutorial
- Published: 2026-03-06

### [How to Fetch and Checkout Specific Pull Requests Locally Using Git Commands](/tiimgreen/github-cheat-sheet/fetch-and-checkout-pull-requests-locally-with-git)

Learn to fetch and checkout specific pull requests locally with Git. Easily review branches and changes using simple git commands for efficient collaboration.

- Tags: how-to-guide
- Published: 2026-03-06

### [Hub Command Line Tool: Features and Installation Guide](/tiimgreen/github-cheat-sheet/hub-cli-tool-features-and-installation)

Explore the Hub command line tool features and installation guide. Streamline GitHub workflows for pull requests, forking, and issue management directly from your terminal.

- Tags: how-to-guide
- Published: 2026-03-06

### [Setting Up CONTRIBUTING, ISSUE_TEMPLATE, and PULL_REQUEST_TEMPLATE Files in GitHub: A Complete Guide](/tiimgreen/github-cheat-sheet/setting-up-contribution-and-template-files-in-github)

Learn best practices for setting up GitHub's CONTRIBUTING, ISSUE_TEMPLATE, and PULL_REQUEST_TEMPLATE files. Streamline your workflow and improve contributions.

- Tags: best-practices
- Published: 2026-03-06

### [How to Create Interactive Task Lists in GitHub Issues and Pull Requests](/tiimgreen/github-cheat-sheet/creating-interactive-task-lists-in-github-issues-and-prs)

Learn to create interactive task lists in GitHub issues and pull requests. GitHub Markdown checkboxes let you track progress effortlessly. Boost your workflow today.

- Tags: how-to-guide
- Published: 2026-03-06

### [GitHub Diff Views Explained: Rendered Prose vs Source Comparison](/tiimgreen/github-cheat-sheet/github-diff-views-rendered-prose-vs-source-understanding)

Master GitHub diff views. Compare rendered prose and source code side-by-side to analyze changes effectively. Understand markup vs HTML for seamless review.

- Tags: deep-dive
- Published: 2026-03-06

### [How to Configure Jekyll Plugins and Custom Metadata for GitHub Pages](/tiimgreen/github-cheat-sheet/configuring-jekyll-plugins-and-metadata-for-github-pages)

Learn to configure Jekyll plugins and custom metadata for GitHub Pages. Customize your site using _config.yml and YAML front-matter for richer content.

- Tags: how-to-guide
- Published: 2026-03-06

### [How to Use GitHub Gists with git clone for Version-Controlled Code Snippets](/tiimgreen/github-cheat-sheet/using-github-gists-with-git-clone-for-version-control)

Master GitHub Gists with git clone for version-controlled code snippets. Clone, edit, and push Gists like any Git repo. Learn how now.

- Tags: how-to-guide
- Published: 2026-03-06

### [Advanced Techniques for Filtering GitHub Issues and Pull Requests](/tiimgreen/github-cheat-sheet/advanced-github-issue-and-pull-request-filtering-techniques)

Master advanced GitHub search syntax to filter issues and pull requests with precision. Leverage query qualifiers for author, assignee, status, and dates to find exactly what you need.

- Tags: how-to-guide
- Published: 2026-03-06

### [How to Automatically Close GitHub Issues Using Commit Message Keywords](/tiimgreen/github-cheat-sheet/automatically-close-github-issues-with-commit-messages)

Automate closing GitHub issues with commit message keywords like fix close or resolve and an issue number. Streamline your workflow and improve repository management.

- Tags: how-to-guide
- Published: 2026-03-06

### [Keyboard Shortcuts for Navigating GitHub Repository Pages: The Essential Guide](/tiimgreen/github-cheat-sheet/useful-github-repository-navigation-keyboard-shortcuts)

Master GitHub navigation with essential keyboard shortcuts. Quickly search files, switch branches, and create permalinks to boost your workflow without your mouse.

- Tags: tutorial
- Published: 2026-03-06

### [How to Compare Branches Across Forked Repositories on GitHub](/tiimgreen/github-cheat-sheet/how-to-compare-branches-across-forked-repositories-in-github)

Easily compare branches across GitHub forks using a special URL syntax. View diffs instantly between your repository and any fork to streamline your review process.

- Tags: how-to-guide
- Published: 2026-03-06

