mirror of
https://github.com/mike-rambil/Advanced-Git.git
synced 2026-01-06 09:29:30 -06:00
820 B
820 B
⬅️ Back to Sharing Changes as Patch Files
⬆️ Previous Step: Create Patch from Uncommitted Changes
Apply Diff File
Command
git apply changes.diff
Examples
- Apply a diff file of uncommitted changes.
git apply changes.diff
- Show what would change if the diff were applied.
git apply --stat changes.diff
Steps
- Run '
git apply changes.diff' to apply the changes from a diff file.
➡️ See the Next Step: Patch vs Diff: Quick Reference
Author: mike-rambil • Updated: 2024-06-10 • Tags: diff, apply, uncommitted