diff --git a/pages.it/common/git-format-patch.md b/pages.it/common/git-format-patch.md new file mode 100644 index 0000000000..3cd64bef84 --- /dev/null +++ b/pages.it/common/git-format-patch.md @@ -0,0 +1,17 @@ +# 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: . + +- 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}}`