1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 04:02:09 +02:00
tldr/pages.it/common/git-format-patch.md
4G3NT 87ec0727fc
pages*: add backticks to every io stream (#10442)
* pages*: add backticks to every io stream
2023-07-02 18:42:01 +05:30

17 lines
594 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}}`