📅  最后修改于: 2022-03-11 14:50:07.930000             🧑  作者: Mango
# to generate a patch between two commits
git diff commitid1 commitid2 > my_awesome_change.patch
# to generate a patch between the HEAD and a specific commits
git diff commitid1 > my_awesome_change.patch