- 7.1 Sélection des versions
- 7.2 Indexation interactive
- 7.3 Remisage et nettoyage
- 7.4 Signer votre travail
- 7.5 Recherche
- 7.6 Réécrire l’historique
- 7.7 Reset démystifié
- 7.8 Fusion avancée
- 7.9 Rerere
- 7.10 Déboguer avec Git
- 7.11 Sous-modules
- 7.12 Empaquetage (bundling)
- 7.13 Replace
- 7.14 Stockage des identifiants
- 7.15 Résumé
A3. Git Commands
- A3.1 Installation et configuration
- A3.2 Obtention et création des projets
- A3.3 Capture d’instantané basique
- A3.4 Création de branches et fusion
- A3.5 Partage et mise à jour de projets
- A3.6 Inspection et comparaison
- A3.7 Débogage
- A3.8 Patchs
- A3.9 Courriel
- A3.10 Systèmes externes
- A3.11 Administration
- A3.12 Commandes de plomberie
A3.9 Git Commands - Email
Many Git projects, including Git itself, are entirely maintained over mailing lists. Git has a number of tools built into it that help make this process easier, from generating patches you can easily email to applying those patches from an email box.
git apply command applies a patch created with the
git diff or even GNU diff command. It is similar to what the
patch command might do with a few small differences.
We demonstrate using it and the circumstances in which you might do so in “Application des patchs à partir d’e-mail”.
git am command is used to apply patches from an email inbox, specifically one that is mbox formatted. This is useful for receiving patches over email and applying them to your project easily.
We covered usage and workflow around
git am in “Application d’un patch avec
am” including using the
There are also a number of hooks you can use to help with the workflow around
git am and they are all covered in “Crochets de gestion courriel”.
We also use it to apply patch formatted GitHub Pull Request changes in “Notifications par courriel”.
git format-patch command is used to generate a series of patches in mbox format that you can use to send to a mailing list properly formatted.
We go through an example of contributing to a project using the
git format-patch tool in “Projet public via E-mail”.
git send-email command is used to send patches that are generated with
git format-patch over email.
We go through an example of contributing to a project by sending patches with the
git send-email tool in “Projet public via E-mail”.
git request-pull command is simply used to generate an example message body to email to someone. If you have a branch on a public server and want to let someone know how to integrate those changes without sending the patches over email, you can run this command and send the output to the person you want to pull the changes in.
We demonstrate how to use
git request-pull to generate a pull message in “Projet public dupliqué”.