Skip to content

format patch

git format-patch -1 <sha>

# the diff of the last commit
git format-patch -1 HEAD

# the diff of the two last commits
git format-patch -2 HEAD