mirror of
https://github.com/mike-rambil/Advanced-Git.git
synced 2025-12-30 14:09:30 -06:00
810 B
810 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.**
```sh
git apply --stat changes.diff```
#### Steps
1. Run '`git apply changes.diff' to apply the changes from a diff file`.
[➡️ See the Next Step: Patch vs Diff: Quick Reference](./patch-vs-diff-quick-reference.md)
---
_Author: mike-rambil • Updated: 2024-06-10 • Tags: diff, apply, uncommitted_