mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 07:04:54 +02:00

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
17 lines
611 B
Markdown
17 lines
611 B
Markdown
# git format-patch
|
|
|
|
> Preparer des ficchiers de correctifs, utiles pour les envoyer par email.
|
|
> Voir egalement `git am`, qui peut appliquer des fichiers de correctifs genérés.
|
|
> Plus d'informations : <https://git-scm.com/docs/git-format-patch>.
|
|
|
|
-Créer un fichier de correctif `.patch` nommé automatiquement pour tout les commits non poussés :
|
|
|
|
`git format-patch {{origin}}`
|
|
|
|
- Crér un fichier correctif `.patch` pour les changements entre 2 révisions :
|
|
|
|
`git format-patch {{revision_1}}..{{revision_2}}`
|
|
|
|
- Créer un fichier correctif `.patch` pour les 3 derniers commits :
|
|
|
|
`git format-patch -{{3}}`
|