Files
Advanced-Git/contents/patch-vs-diff-quick-reference.md
2025-07-11 03:26:51 +00:00

588 B

⬅️ Back to Sharing Changes as Patch Files

⬆️ Previous Step: Apply Diff File

Patch vs Diff: Quick Reference

Category: Patch & Diff

Command Use Case Preserves Commit Info? Can Apply With
git diff > file.diff Share uncommitted changes git apply
git format-patch > file.patch Share committed changes git am

Author: mike-rambil • Updated: 2024-06-10 • Tags: patch, diff, reference