mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 22:22:18 +02:00

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
17 lines
592 B
Markdown
17 lines
592 B
Markdown
# git format-patch
|
|
|
|
> Prepara file .patch. Utile per l'invio di commit via email.
|
|
> Vedi anche `git am`, che permette di applicare file .patch.
|
|
> Maggiori informazioni: <https://git-scm.com/docs/git-format-patch>.
|
|
|
|
- Crea un file `.patch` (il nome è assegnato automaticamente) con i commit non ancora inviati al repository remoto:
|
|
|
|
`git format-patch {{origin}}`
|
|
|
|
- Scrivi su stdout un file `.patch` per l'intervallo di commit definito dai due commit dati:
|
|
|
|
`git format-patch --stdout {{commit_1}}..{{commit_2}}`
|
|
|
|
- Scrivi un file `.patch` per gli ultimi 3 commit:
|
|
|
|
`git format-patch -{{3}}`
|