Created
September 16, 2025 10:56
-
-
Save DerPauli/4cdf67e9ad58cb9acd25f17d5ba8487e to your computer and use it in GitHub Desktop.
Create a git patch on a folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create patch | |
git diff origin/main..origin/<branch-to-compare> -- folder/to/patch/ another.file > my.patch | |
# apply the patch | |
patch -p1 < my.patch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment