Files
tldr/pages.ko/common/git-format-patch.md
T
2026-02-18 10:53:26 +07:00

18 lines
553 B
Markdown

# git format-patch
> `.patch` 파일 준비. 커밋을 이메일로 전송할 때 유용합니다.
> 관련 항목: `git am`.
> 더 많은 정보: <https://git-scm.com/docs/git-format-patch>.
- 푸시되지 않은 모든 커밋에 대한 자동 이름 지정 `.patch` 파일 생성:
`git format-patch {{origin}}`
- 두 개의 리비전 사이의 모든 커밋에 대한 `.patch` 파일을 `stdout`으로 출력:
`git format-patch {{revision_1}}..{{revision_2}}`
- 최근 3개의 커밋에 대한 `.patch` 파일 생성:
`git format-patch -{{3}}`