git format-patch
Prepare
.patchfiles. Useful when emailing commits elsewhere. See also:git am. More information: https://git-scm.com/docs/git-format-patch.
- Create an auto-named
.patchfile for all the unpushed commits:
git format-patch
- Write a
.patchfile for all the commits between 2 revisions tostdout:
git format-patch ..
- Write a
.patchfile for thenlatest commits:
git format-patch -
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
