Git diff and patch resources

Git diff, patch, and GitHub pull request guides

Find copyable Git commands, practical patch-file workflows, and tested ways to download, review, apply, and share code changes. Each guide solves one concrete review problem without assuming every change belongs in a pull request.

Start with the Git diff command cheat sheet or compare ways to share a Git diff.

Resource hub

Browse by workflow

All guides

Latest Git diff and patch articles

git · diff-viewer · code-review · tools

10 free online git diff viewers compared (2026)

A practical roundup of free browser-based tools for viewing and sharing git diffs and patch files, with the strengths and trade-offs of each.

tutorial · github · pull-requests · code-review · sharepatch

Remove rebase noise from GitHub PR update diffs

Use SharePatch's remove rebase noise button to turn a noisy GitHub PR update into a focused view of what changed in the latest push.

tutorial · git · format-patch · email-patches · sharepatch

How to use git format-patch with SharePatch

Learn how to generate .patch and mailbox files with git format-patch and review them in SharePatch with commit message, author metadata, series context, and rendered diffs.

tutorial · git · email-patches · mailing-lists · sharepatch

How to view mailing list patches in SharePatch

Learn how to open raw mailing-list patch emails in SharePatch from URLs like lore.kernel.org/raw and review the subject, series, commit message, recipients, and diff in the browser.

tutorial · git · diff-viewer · code-review · sharepatch

How to view a Git diff or patch file online

Open a Git diff, .diff file, or .patch file in an online browser viewer with file navigation, side-by-side review, raw text, and shareable links.