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
GitHub diffs and patches
Patch files and email
All guides
Latest Git diff and patch articles
How to share a Git diff: 6 practical methods compared
Compare six reliable ways to share a Git diff, from patch files and Gists to pull requests and browser-based review links.
How to download a GitHub pull request as a .diff or .patch file
Download any public GitHub pull request as a unified .diff or email-style .patch, use the API for private repositories, and review or apply it safely.
Git diff cheat sheet: everyday commands and examples
A practical Git diff command reference covering unstaged, staged, branch, commit, file, word, rename, binary, and patch-file workflows.
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.
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.
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.
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.
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.
How to create a Git patch file and share it online
Create a Git patch with git diff or git format-patch, check and apply it safely, then open or share the .diff or .patch file in a browser.