git patch

Updated: 15 February 2024

Make a patch file from the 1st commit in HEAD

git diff @~1 @ > my.patch

Apply the patch file to another repo

git apply my.patch

Leave a comment