# This is useful for sharing/saving a set of changes
# without having to commit anything.
# Create a patch file containing a diff.
git diff > diff.patch
# Apply the changes within the patch.
git apply diff.patch
# This is useful for sharing/saving a set of changes
# without having to commit anything.
# Create a patch file containing a diff.
git diff > diff.patch
# Apply the changes within the patch.
git apply diff.patch