mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
89161fd97c
Co-authored-by: IMHOJEONG <39ghwjd@naver.com>
18 lines
553 B
Markdown
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}}`
|