1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 22:22:18 +02:00
tldr/pages.it/common/git-format-patch.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

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}}`