<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.ainw.org/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Mon wiki - informatique:git</title>
        <description></description>
        <link>https://www.ainw.org/wiki/</link>
        <lastBuildDate>Mon, 04 May 2026 11:49:30 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://www.ainw.org/wiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>Mon wiki</title>
            <link>https://www.ainw.org/wiki/</link>
        </image>
        <item>
            <title>configuration</title>
            <link>https://www.ainw.org/wiki/doku.php?id=informatique:git:configuration&amp;rev=1733239027&amp;do=diff</link>
            <description>&lt;div class=&quot;tagstop&quot;&gt;&lt;span&gt;
	&lt;a href=&quot;https://www.ainw.org/wiki/doku.php?id=tag:todo&amp;amp;do=showtag&amp;amp;tag=todo&quot; class=&quot;wikilink1&quot; title=&quot;tag:todo&quot; rel=&quot;tag&quot;&gt;todo&lt;/a&gt;
&lt;/span&gt;&lt;/div&gt;

&lt;h1 class=&quot;sectionedit1&quot; id=&quot;configuration&quot;&gt;Configuration&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
Il est possible de modifier les préférences en utilisant soit git directement soit en modifiant son fichier de configuration.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Configuration&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;configuration&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;14-170&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit2&quot; id=&quot;en_ligne_de_commande&quot;&gt;En ligne de commande&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git config&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--global&lt;/span&gt; user.name &lt;span class=&quot;st0&quot;&gt;&amp;quot;Nom et prénom de l&#039;utilisateur&amp;quot;&lt;/span&gt; &lt;span class=&quot;co0&quot;&gt;# Nom de l&#039;utilisateur&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git config&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--global&lt;/span&gt; user.email &lt;span class=&quot;st0&quot;&gt;&amp;quot;Adresse email de l&#039;utilisateur&amp;quot;&lt;/span&gt; &lt;span class=&quot;co0&quot;&gt;# Adresse email de l&#039;utilisateur&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git config&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--global&lt;/span&gt; color.ui &lt;span class=&quot;st0&quot;&gt;&amp;quot;auto&amp;quot;&lt;/span&gt; &lt;span class=&quot;co0&quot;&gt;# Colorisation des résultats&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git config&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--global&lt;/span&gt; core.editor &lt;span class=&quot;kw2&quot;&gt;vim&lt;/span&gt; &lt;span class=&quot;co0&quot;&gt;# Choix de l&#039;éditeur par défaut&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git config&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--global&lt;/span&gt; help.autocorrect &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;co0&quot;&gt;# Auto-correction des commandes&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git config&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--global&lt;/span&gt; core.autocrlf &lt;span class=&quot;kw2&quot;&gt;false&lt;/span&gt; &lt;span class=&quot;co0&quot;&gt;# Non conversion du caractère de fin de ligne&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git config&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--global&lt;/span&gt; commit.template &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;filename&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;co0&quot;&gt;# Utilisation d&#039;un modèle de message pour la validation&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git config&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--global&lt;/span&gt; alias.st &lt;span class=&quot;st_h&quot;&gt;&#039;status&#039;&lt;/span&gt; &lt;span class=&quot;co0&quot;&gt;# Création d&#039;un alias de la fonction &amp;quot;status&amp;quot;&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git config&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--global&lt;/span&gt; push.autoSetupRemote &lt;span class=&quot;kw2&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;co0&quot;&gt;# Création automatique de la branche distante au moment du partage (commande &amp;quot;push&amp;quot;)&lt;/span&gt;&lt;/pre&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_start&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:3,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;div class=&quot;wrap_alert plugin_wrap&quot;&gt;
&lt;p&gt;
Pour supprimer un élément de la configuration, il suffit d&amp;#039;ajouter l&amp;#039;option &lt;code&gt;--unset&lt;/code&gt; lors de l&amp;#039;utilisation de la commande. Par exemple :
&lt;/p&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git config&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--global&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--unset&lt;/span&gt; user.name&lt;/pre&gt;
&lt;/div&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_end&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:4,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_start&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:5,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;div class=&quot;wrap_tip plugin_wrap&quot;&gt;
&lt;p&gt;
En utilisant &lt;code&gt;--global&lt;/code&gt;, la configuration s&amp;#039;applique à l&amp;#039;utilisateur courant. Il est possible de changer ce comportement en utilisant d&amp;#039;autres options :
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Avec &lt;code&gt;--system&lt;/code&gt;, la configuration s&amp;#039;applique à tous les utilisateurs de la machine.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Avec &lt;code&gt;--local&lt;/code&gt;, la configuration s&amp;#039;applique au dépôt courant. Dans ce cas, il faut bien sur se trouver dans un répertoire géré par git.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_end&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:6,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;
&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;En ligne de commande&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;en_ligne_de_commande&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;171-1675&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit7&quot; id=&quot;avec_un_fichier_de_configuration&quot;&gt;Avec un fichier de configuration&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Le fichier a modifier est le fichier &lt;em&gt;.gitconfig&lt;/em&gt; à la racine du répertoire de l&amp;#039;utilisateur. Il est généré automatiquement lors de l&amp;#039;utilisation des commandes de configuration.
&lt;/p&gt;
&lt;pre class=&quot;code ini&quot;&gt;&lt;span class=&quot;re0&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;user&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;email&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; Adresse email de l&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&#039;utilisateur
        name = Nom et prénom de l&#039;&lt;/span&gt;utilisateur
&lt;span class=&quot;re0&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;core&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;editor&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; vim &lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;autocrlf&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; false&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;color&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;ui&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; auto&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;help&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;autocorrect&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; 1&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;alias&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;st&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; status&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;commit&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;template&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; &amp;lt;filename&amp;gt;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;push&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;autoSetupRemote&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; true&lt;/span&gt;&lt;/pre&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_start&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:8,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;div class=&quot;wrap_alert plugin_wrap&quot;&gt;
&lt;p&gt;
Pour supprimer un élément de la configuration, il suffit de l&amp;#039;enlever du fichier de configuration.
&lt;/p&gt;
&lt;/div&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_end&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:9,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_start&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:10,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;div class=&quot;wrap_tip plugin_wrap&quot;&gt;
&lt;p&gt;
En modifiant le fichier &lt;code&gt;.gitconfig&lt;/code&gt;, la configuration s&amp;#039;applique à l&amp;#039;utilisateur courant. Il est possible de changer ce comportement en modifiant d&amp;#039;autres fichiers :
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; En modifiant le fichier &lt;code&gt;/etc/gitconfig&lt;/code&gt;, la configuration s&amp;#039;applique à tous les utilisateurs de la machine.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; En modifiant le fichier &lt;code&gt;.git/config&lt;/code&gt;, la configuration s&amp;#039;applique au dépôt courant. Dans ce cas, il faut bien sur se trouver dans un répertoire géré par git.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_end&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:11,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_start&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:12,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;div class=&quot;wrap_info plugin_wrap&quot;&gt;
&lt;p&gt;
Lorsque l&amp;#039;autocorrection des commandes est activée, git essaye de trouver une correspondance dans les commandes existantes. S&amp;#039;il existe plusieurs possibilités, elles seront affichées à l&amp;#039;utilisateur. S&amp;#039;il n&amp;#039;existe qu&amp;#039;une seule possibilité, elle sera exécutée automatiquement.
&lt;/p&gt;
&lt;/div&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_end&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:13,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_start&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:14,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;div class=&quot;wrap_info plugin_wrap&quot;&gt;
&lt;p&gt;
Lorsqu&amp;#039;un fichier modèle de message est utilisé pour la validation, celui-ci est affiché à chaque validation. Les lignes de commentaires &lt;sup&gt;&lt;a href=&quot;#fn__1&quot; id=&quot;fnt__1&quot; class=&quot;fn_top&quot;&gt;1)&lt;/a&gt;&lt;/sup&gt; ne seront pas utilisées lors de la validation.
Cela permet de :
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; donner des indications sur ce que doit contenir le message de validation,&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; faciliter la rédaction du message de validation en y intégrant les données obligatoires automatiquement.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_end&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:15,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;
&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Avec un fichier de configuration&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;avec_un_fichier_de_configuration&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:2,&amp;quot;secid&amp;quot;:7,&amp;quot;range&amp;quot;:&amp;quot;1676-3600&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit16&quot; id=&quot;des_alias_pour_gagner_du_temps&quot;&gt;Des alias pour gagner du temps&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
En plus de raccourcir certaines commandes, les alias permettent aussi de combiner des actions répétitives en une seule commande.
Voici les alias que j&amp;#039;utilise actuellement.
&lt;/p&gt;
&lt;dl class=&quot;code&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;https://www.ainw.org/wiki/doku.php?do=export_code&amp;amp;id=informatique:git:configuration&amp;amp;codeblock=3&quot; title=&quot;Télécharger cet extrait&quot; class=&quot;mediafile mf_gitconfig&quot;&gt;.gitconfig&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code ini&quot;&gt;&lt;span class=&quot;re0&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;alias&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;        ; List aliases&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;alias&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; !git config --get-regexp &lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&#039;^alias\\.&#039;&lt;/span&gt; | sed --expression s/^alias\\.// --expression s/\\ /\\\\t\\ / | sort
&lt;span class=&quot;co0&quot;&gt;        ; Amend content to the last commit&lt;/span&gt;
	&lt;span class=&quot;re1&quot;&gt;amend&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; commit --amend --no-edit&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;        ; Check for whitespace errors&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;check&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; diff --check HEAD&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;        ; Fixup a commit into another&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;fixup&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; !sh -c &lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&#039;git stash --keep-index &amp;amp;&amp;amp; SHA=$(git rev-parse $1) &amp;amp;&amp;amp; git commit --fixup $SHA &amp;amp;&amp;amp; GIT_SEQUENCE_EDITOR=: git rebase --interactive --autosquash $SHA~ &amp;amp;&amp;amp; git stash pop&#039;&lt;/span&gt; -
&lt;span class=&quot;co0&quot;&gt;        ; Show file names in commits&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;list-file&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; !sh -c &lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&#039;git diff-tree --no-commit-id --name-only -r ${1:-HEAD}&#039;&lt;/span&gt; -
&lt;span class=&quot;co0&quot;&gt;	; Show branches ordered by last working time&lt;/span&gt;
	&lt;span class=&quot;re1&quot;&gt;last-work&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; branch --sort=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&#039;-committerdate&#039;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;--format&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&#039;%(color:green)%(committerdate:relative)%(color:reset) %(refname:short)&#039;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;--color&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;always&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;        ; Retrieve a MR locally (gitlab)&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;mr&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; !sh -c &lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&#039;git fetch ${2:-origin} merge-requests/$1/head:mr/$1 &amp;amp;&amp;amp; git checkout mr/$1&#039;&lt;/span&gt; -
&lt;span class=&quot;co0&quot;&gt;        ; Show log on oneline&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;oneline&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; log --oneline --abbrev-commit --graph&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;        ; Retrieve a PR locally (github)&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;pr&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; !sh -c &lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&#039;git fetch ${2:-origin} pull/$1/head:pr/$1 &amp;amp;&amp;amp; git checkout pr/$1&#039;&lt;/span&gt; -
&lt;span class=&quot;co0&quot;&gt;        ; Prune local tags that don&#039;t exist on remote&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;pt&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;&lt;span class=&quot;re2&quot;&gt; !git tag -l | xargs git tag -d &amp;amp;&amp;amp; git fetch -t&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;        ; Remove local MRs (gitlab)&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;rmmr&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt; !git reset --hard &amp;amp;&amp;amp; git checkout master &amp;amp;&amp;amp; git branch --list &lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&#039;mr/*&#039;&lt;/span&gt; --format &lt;span class=&quot;st0&quot;&gt;&#039;%(refname:lstrip=2)&#039;&lt;/span&gt; | xargs git branch -D
&lt;span class=&quot;co0&quot;&gt;        ; Show synchronized branches without remote&lt;/span&gt;
        &lt;span class=&quot;re1&quot;&gt;stale-branch&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;&lt;span class=&quot;re2&quot;&gt; !git fetch --all --prune &amp;amp;&amp;amp; git branch --verbose | awk &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&#039;/\\[gone\\]/ {print $1}&#039;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_start&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:17,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;div class=&quot;wrap_info plugin_wrap&quot;&gt;
&lt;p&gt;
La commande &lt;code&gt;:&lt;/code&gt;, utilisée comme éditeur dans la variable &lt;code&gt;GIT_SEQUENCE_EDITOR&lt;/code&gt;, fait partie des commandes incluses dans Bash. Voir &lt;a href=&quot;https://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html#Bourne-Shell-Builtins&quot; class=&quot;urlextern&quot; title=&quot;https://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html#Bourne-Shell-Builtins&quot; rel=&quot;ugc nofollow&quot;&gt;ici&lt;/a&gt; pour plus d&amp;#039;informations.
&lt;/p&gt;
&lt;/div&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_end&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:18,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_start&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:19,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;div class=&quot;wrap_alert plugin_wrap&quot;&gt;
&lt;p&gt;
Attention, la version de &lt;em&gt;sed&lt;/em&gt; disponible sur MacOS ne supporte pas l&amp;#039;option &lt;code&gt;–expression&lt;/code&gt;.
Il faut la remplacer par l&amp;#039;option &lt;code&gt;-e&lt;/code&gt;, le reste étant conservé à l&amp;#039;identique.
&lt;/p&gt;
&lt;/div&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_end&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:20,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;
&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Des alias pour gagner du temps&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;des_alias_pour_gagner_du_temps&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:3,&amp;quot;secid&amp;quot;:16,&amp;quot;range&amp;quot;:&amp;quot;3601-5979&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit21&quot; id=&quot;prompt_personnalise&quot;&gt;Prompt personnalisé&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_start&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:22,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;div class=&quot;wrap_todo plugin_wrap&quot;&gt;
&lt;p&gt;
Vérifier ce que j&amp;#039;ai fait à la maison
&lt;/p&gt;
&lt;/div&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_end&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:23,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;GIT_PS1_SHOWDIRTYSTATE&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;kw3&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;GIT_PS1_SHOWSTASHSTATE&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;kw3&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;GIT_PS1_SHOWUNTRACKEDFILES&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;kw3&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;GIT_PS1_SHOWUPSTREAM&lt;/span&gt;=verbose
&lt;span class=&quot;kw3&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;GIT_PS1_DESCRIBE_STYLE&lt;/span&gt;=branch
&lt;span class=&quot;kw3&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;GIT_PS1_SHOWCOLORHINTS&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;kw3&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;PROMPT_COMMAND&lt;/span&gt;=&lt;span class=&quot;st_h&quot;&gt;&#039;__git_ps1 &amp;quot;\[\033[1;32m\]\u@\h:\[\033[1;34m\]\w\[\033[1;m\]&amp;quot; &amp;quot; \\\$ &amp;quot;&#039;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Prompt personnalis\u00e9&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;prompt_personnalise&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:4,&amp;quot;secid&amp;quot;:21,&amp;quot;range&amp;quot;:&amp;quot;5980-&amp;quot;} --&gt;&lt;div class=&quot;footnotes&quot;&gt;
&lt;div class=&quot;fn&quot;&gt;&lt;sup&gt;&lt;a href=&quot;#fnt__1&quot; id=&quot;fn__1&quot; class=&quot;fn_bot&quot;&gt;1)&lt;/a&gt;&lt;/sup&gt; 
&lt;div class=&quot;content&quot;&gt;Les lignes qui commencent par &lt;code&gt;#&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 03 Dec 2024 15:17:07 +0000</pubDate>
        </item>
        <item>
            <title>liens_utiles</title>
            <link>https://www.ainw.org/wiki/doku.php?id=informatique:git:liens_utiles&amp;rev=1772369037&amp;do=diff</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;liens_utiles&quot;&gt;Liens utiles&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Liens utiles&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;liens_utiles&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;1-28&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit2&quot; id=&quot;aide_memoire&quot;&gt;Aide mémoire&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://git-scm.com/docs&quot; class=&quot;urlextern&quot; title=&quot;http://git-scm.com/docs&quot; rel=&quot;ugc nofollow&quot;&gt;Index des commandes&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://ndpsoftware.com/git-cheatsheet.html&quot; class=&quot;urlextern&quot; title=&quot;http://ndpsoftware.com/git-cheatsheet.html&quot; rel=&quot;ugc nofollow&quot;&gt;Aide mémoire Git&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://www.cheat-sheets.org/saved-copy/git-cheat-sheet.pdf&quot; class=&quot;urlextern&quot; title=&quot;http://www.cheat-sheets.org/saved-copy/git-cheat-sheet.pdf&quot; rel=&quot;ugc nofollow&quot;&gt;Aide mémoire Git&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://git-scm.com/book&quot; class=&quot;urlextern&quot; title=&quot;http://git-scm.com/book&quot; rel=&quot;ugc nofollow&quot;&gt;Version en ligne et complète du livre «Pro Git»&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://github.com/ineat/refcards/blob/master/git/FR.md&quot; class=&quot;urlextern&quot; title=&quot;https://github.com/ineat/refcards/blob/master/git/FR.md&quot; rel=&quot;ugc nofollow&quot;&gt;refcards/FR.md at master · ineat/refcards&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Aide m\u00e9moire&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;aide_memoire&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;29-451&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit3&quot; id=&quot;pour_commencer&quot;&gt;Pour commencer&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://danielmiessler.com/study/git/&quot; class=&quot;urlextern&quot; title=&quot;http://danielmiessler.com/study/git/&quot; rel=&quot;ugc nofollow&quot;&gt;A git Primer&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://githowto.com/&quot; class=&quot;urlextern&quot; title=&quot;http://githowto.com/&quot; rel=&quot;ugc nofollow&quot;&gt;Git How To&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://www.vogella.com/tutorials/Git/article.html&quot; class=&quot;urlextern&quot; title=&quot;http://www.vogella.com/tutorials/Git/article.html&quot; rel=&quot;ugc nofollow&quot;&gt;Git - Tutorial&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://lilobase.wordpress.com/2014/05/12/a-la-decouverte-de-git&quot; class=&quot;urlextern&quot; title=&quot;http://lilobase.wordpress.com/2014/05/12/a-la-decouverte-de-git&quot; rel=&quot;ugc nofollow&quot;&gt;Ce que j’aurais aimé savoir quand j’ai commencé Git&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://wiki.openstack.org/wiki/GitCommitMessages&quot; class=&quot;urlextern&quot; title=&quot;https://wiki.openstack.org/wiki/GitCommitMessages&quot; rel=&quot;ugc nofollow&quot;&gt;Git commit good practice&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://try.github.io&quot; class=&quot;urlextern&quot; title=&quot;http://try.github.io&quot; rel=&quot;ugc nofollow&quot;&gt;Un cours étape par étape pour apprendre à se servir de Git&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://connect.ed-diamond.com/GNU-Linux-Magazine/GLMF-119/Git-it&quot; class=&quot;urlextern&quot; title=&quot;http://connect.ed-diamond.com/GNU-Linux-Magazine/GLMF-119/Git-it&quot; rel=&quot;ugc nofollow&quot;&gt;Git it, article pour commencer avec Git&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://gitimmersion.com/&quot; class=&quot;urlextern&quot; title=&quot;http://gitimmersion.com/&quot; rel=&quot;ugc nofollow&quot;&gt;Git immersion&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://www.learnenough.com/git-tutorial&quot; class=&quot;urlextern&quot; title=&quot;http://www.learnenough.com/git-tutorial&quot; rel=&quot;ugc nofollow&quot;&gt;Learn Enough Git to Be Dangerous&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://dev.to/unseenwizzard/learn-git-concepts-not-commands-4gjc&quot; class=&quot;urlextern&quot; title=&quot;https://dev.to/unseenwizzard/learn-git-concepts-not-commands-4gjc&quot; rel=&quot;ugc nofollow&quot;&gt;Learn git concepts, not commands - DEV Community 👩‍💻👨‍💻&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://jwiegley.github.io/git-from-the-bottom-up/&quot; class=&quot;urlextern&quot; title=&quot;https://jwiegley.github.io/git-from-the-bottom-up/&quot; rel=&quot;ugc nofollow&quot;&gt;Git from the Bottom Up&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Pour commencer&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;pour_commencer&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:3,&amp;quot;range&amp;quot;:&amp;quot;452-1423&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit4&quot; id=&quot;pour_aller_plus_loin&quot;&gt;Pour aller plus loin&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://alexpeattie.com/blog/working-with-dates-in-git/&quot; class=&quot;urlextern&quot; title=&quot;http://alexpeattie.com/blog/working-with-dates-in-git/&quot; rel=&quot;ugc nofollow&quot;&gt;Working with dates in Git&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://www.freeklijten.nl/home/2011/07/05/Git-commit-hooks-using-PHP&quot; class=&quot;urlextern&quot; title=&quot;http://www.freeklijten.nl/home/2011/07/05/Git-commit-hooks-using-PHP&quot; rel=&quot;ugc nofollow&quot;&gt;Git commit hooks using PHP&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://git-scm.com/book/en/Customizing-Git-Git-Hooks&quot; class=&quot;urlextern&quot; title=&quot;http://git-scm.com/book/en/Customizing-Git-Git-Hooks&quot; rel=&quot;ugc nofollow&quot;&gt;Customizing Git - Git Hooks&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://blog.timcrider.com/2010/08/16/php-syntax-checker-for-git-repository-changes/&quot; class=&quot;urlextern&quot; title=&quot;http://blog.timcrider.com/2010/08/16/php-syntax-checker-for-git-repository-changes/&quot; rel=&quot;ugc nofollow&quot;&gt;PHP syntax checker for Git repository changes&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://chanux.wordpress.com/2013/06/20/composer-phar-composer-lock-and-git/&quot; class=&quot;urlextern&quot; title=&quot;https://chanux.wordpress.com/2013/06/20/composer-phar-composer-lock-and-git/&quot; rel=&quot;ugc nofollow&quot;&gt;Composer.phar, composer.lock and git&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://stackoverflow.com/questions/540535/managing-large-binary-files-with-git&quot; class=&quot;urlextern&quot; title=&quot;http://stackoverflow.com/questions/540535/managing-large-binary-files-with-git&quot; rel=&quot;ugc nofollow&quot;&gt;Managing large binary files with git&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://connect.ed-diamond.com/GNU-Linux-Magazine/GLMF-101/Git-pour-les-futurs-barbus&quot; class=&quot;urlextern&quot; title=&quot;http://connect.ed-diamond.com/GNU-Linux-Magazine/GLMF-101/Git-pour-les-futurs-barbus&quot; rel=&quot;ugc nofollow&quot;&gt;Git pour les (futurs) barbus&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://think-like-a-git.net&quot; class=&quot;urlextern&quot; title=&quot;http://think-like-a-git.net&quot; rel=&quot;ugc nofollow&quot;&gt;Think Like (a) Git&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://www.git-attitude.fr/2013/05/22/prompt-git-qui-dechire&quot; class=&quot;urlextern&quot; title=&quot;http://www.git-attitude.fr/2013/05/22/prompt-git-qui-dechire&quot; rel=&quot;ugc nofollow&quot;&gt;Un prompt Git qui déchire&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://www.git-attitude.fr/2014/05/04/bien-utiliser-git-merge-et-rebase&quot; class=&quot;urlextern&quot; title=&quot;http://www.git-attitude.fr/2014/05/04/bien-utiliser-git-merge-et-rebase&quot; rel=&quot;ugc nofollow&quot;&gt;Bien utiliser Git merge et rebase&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://nvie.com/posts/a-successful-git-branching-model/&quot; class=&quot;urlextern&quot; title=&quot;http://nvie.com/posts/a-successful-git-branching-model/&quot; rel=&quot;ugc nofollow&quot;&gt;Une explication détaillée pour un système de branches efficace&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://gitready.com/&quot; class=&quot;urlextern&quot; title=&quot;http://gitready.com/&quot; rel=&quot;ugc nofollow&quot;&gt;Apprendre git un commit à la fois&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://www.miximum.fr/tutos/1546-enfin-comprendre-git&quot; class=&quot;urlextern&quot; title=&quot;http://www.miximum.fr/tutos/1546-enfin-comprendre-git&quot; rel=&quot;ugc nofollow&quot;&gt;Pour arrêter de galérer avec Git&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://www.vogella.com/tutorials/Git/article.html&quot; class=&quot;urlextern&quot; title=&quot;http://www.vogella.com/tutorials/Git/article.html&quot; rel=&quot;ugc nofollow&quot;&gt;Git - tutorial&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://www.alexkras.com/19-git-tips-for-everyday-use/&quot; class=&quot;urlextern&quot; title=&quot;http://www.alexkras.com/19-git-tips-for-everyday-use/&quot; rel=&quot;ugc nofollow&quot;&gt;19 Tips For Everyday Git Use&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://www.iliveinperego.com/2013/12/local-git-repository-with-composer/&quot; class=&quot;urlextern&quot; title=&quot;http://www.iliveinperego.com/2013/12/local-git-repository-with-composer/&quot; rel=&quot;ugc nofollow&quot;&gt;Local git repository with composer&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://haacked.com/archive/2014/07/28/github-flow-aliases/&quot; class=&quot;urlextern&quot; title=&quot;http://haacked.com/archive/2014/07/28/github-flow-aliases/&quot; rel=&quot;ugc nofollow&quot;&gt;GitHub Flow Like a Pro with these 13 Git Aliases&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://danielkummer.github.io/git-flow-cheatsheet/index.fr_FR.html&quot; class=&quot;urlextern&quot; title=&quot;http://danielkummer.github.io/git-flow-cheatsheet/index.fr_FR.html&quot; rel=&quot;ugc nofollow&quot;&gt;Git Flow cheatsheet&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://dev.ghost.org/easy-git-pr-test/&quot; class=&quot;urlextern&quot; title=&quot;https://dev.ghost.org/easy-git-pr-test/&quot; rel=&quot;ugc nofollow&quot;&gt;Test Any Open Source Pull Request in Seconds&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://blog.eleven-labs.com/fr/debugging-with-git/&quot; class=&quot;urlextern&quot; title=&quot;https://blog.eleven-labs.com/fr/debugging-with-git/&quot; rel=&quot;ugc nofollow&quot;&gt;Débugger avec Git&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://www-cs-students.stanford.edu/~blynn/gitmagic/intl/fr/index.html&quot; class=&quot;urlextern&quot; title=&quot;http://www-cs-students.stanford.edu/~blynn/gitmagic/intl/fr/index.html&quot; rel=&quot;ugc nofollow&quot;&gt;Git magic&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://stackoverflow.com/questions/89332/how-to-recover-a-dropped-stash-in-git&quot; class=&quot;urlextern&quot; title=&quot;https://stackoverflow.com/questions/89332/how-to-recover-a-dropped-stash-in-git&quot; rel=&quot;ugc nofollow&quot;&gt;How to recover a dropped stash in Git?&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://mghignet.github.io/git-dammit-talk/&quot; class=&quot;urlextern&quot; title=&quot;https://mghignet.github.io/git-dammit-talk/&quot; rel=&quot;ugc nofollow&quot;&gt;Git dammit!&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://dev.to/daolf/git-series-13-understanding-git-for-real-by-exploring-the-git-director--5bd0&quot; class=&quot;urlextern&quot; title=&quot;https://dev.to/daolf/git-series-13-understanding-git-for-real-by-exploring-the-git-director--5bd0&quot; rel=&quot;ugc nofollow&quot;&gt;Understanding git for real by exploring the .git directory - DEV&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://www.atlassian.com/blog/git/tear-apart-repository-git-way&quot; class=&quot;urlextern&quot; title=&quot;https://www.atlassian.com/blog/git/tear-apart-repository-git-way&quot; rel=&quot;ugc nofollow&quot;&gt;How to tear apart a repository: the Git way - Work Life by Atlassian&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://blog.plover.com/prog/git/tips-2.html&quot; class=&quot;urlextern&quot; title=&quot;https://blog.plover.com/prog/git/tips-2.html&quot; rel=&quot;ugc nofollow&quot;&gt;The Universe of Discourse : Things I wish everyone knew about Git (Part II)&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://ohshitgit.com/fr&quot; class=&quot;urlextern&quot; title=&quot;https://ohshitgit.com/fr&quot; rel=&quot;ugc nofollow&quot;&gt;Et merde, Git!?!&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://adamj.eu/tech/2023/09/18/git-dont-create-gitkeep/&quot; class=&quot;urlextern&quot; title=&quot;https://adamj.eu/tech/2023/09/18/git-dont-create-gitkeep/&quot; rel=&quot;ugc nofollow&quot;&gt;Git: Don’t create .gitkeep files, use .gitignore instead - Adam Johnson&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://spencer.wtf/2026/02/20/cleaning-up-merged-git-branches-a-one-liner-from-the-cias-leaked-dev-docs.html&quot; class=&quot;urlextern&quot; title=&quot;https://spencer.wtf/2026/02/20/cleaning-up-merged-git-branches-a-one-liner-from-the-cias-leaked-dev-docs.html&quot; rel=&quot;ugc nofollow&quot;&gt;Cleaning up merged git branches: a one-liner from the CIA&amp;#039;s leaked dev docs | spencer.wtf&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Pour aller plus loin&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;pour_aller_plus_loin&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:4,&amp;quot;range&amp;quot;:&amp;quot;1424-4584&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit5&quot; id=&quot;signer_ses_commits&quot;&gt;Signer ses commits&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://stackoverflow.com/questions/10161198/is-there-a-way-to-autosign-commits-in-git-with-a-gpg-key&quot; class=&quot;urlextern&quot; title=&quot;https://stackoverflow.com/questions/10161198/is-there-a-way-to-autosign-commits-in-git-with-a-gpg-key&quot; rel=&quot;ugc nofollow&quot;&gt;public key encryption - Is there a way to &amp;quot;autosign&amp;quot; commits in Git with a GPG key? - Stack Overflow&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.gitlab.com/user/project/repository/signed_commits/ssh/&quot; class=&quot;urlextern&quot; title=&quot;https://docs.gitlab.com/user/project/repository/signed_commits/ssh/&quot; rel=&quot;ugc nofollow&quot;&gt;Sign commits with SSH keys | GitLab Docs&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://code.mendhak.com/keepassxc-sign-git-commit-with-ssh/&quot; class=&quot;urlextern&quot; title=&quot;https://code.mendhak.com/keepassxc-sign-git-commit-with-ssh/&quot; rel=&quot;ugc nofollow&quot;&gt;Use KeePassXC to sign your git commits&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.gitlab.com/user/ssh/#generate-an-ssh-key-pair&quot; class=&quot;urlextern&quot; title=&quot;https://docs.gitlab.com/user/ssh/#generate-an-ssh-key-pair&quot; rel=&quot;ugc nofollow&quot;&gt;Use SSH keys with GitLab | GitLab Docs&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Signer ses commits&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;signer_ses_commits&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:5,&amp;quot;range&amp;quot;:&amp;quot;4585-5159&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit6&quot; id=&quot;humour&quot;&gt;Humour&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; sur &lt;a href=&quot;http://angriestprogrammer.com/comic/source_control&quot; class=&quot;urlextern&quot; title=&quot;http://angriestprogrammer.com/comic/source_control&quot; rel=&quot;ugc nofollow&quot;&gt;angriestprogrammer.com&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; sur &lt;a href=&quot;http://xkcd.com/1296/&quot; class=&quot;urlextern&quot; title=&quot;http://xkcd.com/1296/&quot; rel=&quot;ugc nofollow&quot;&gt;xkcd.com&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; sur &lt;a href=&quot;http://www.commitstrip.com/fr/2013/11/05/git-svn-ou/&quot; class=&quot;urlextern&quot; title=&quot;http://www.commitstrip.com/fr/2013/11/05/git-svn-ou/&quot; rel=&quot;ugc nofollow&quot;&gt;commitstrip.com&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://hikaruzone.files.wordpress.com/2015/10/in-case-of-fire-1-git-commit-2-git-push-3-leave-building.pdf&quot; class=&quot;urlextern&quot; title=&quot;https://hikaruzone.files.wordpress.com/2015/10/in-case-of-fire-1-git-commit-2-git-push-3-leave-building.pdf&quot; rel=&quot;ugc nofollow&quot;&gt;En cas d&amp;#039;incendie&lt;/a&gt; et &lt;a href=&quot;https://github.com/qw3rtman/git-fire&quot; class=&quot;urlextern&quot; title=&quot;https://github.com/qw3rtman/git-fire&quot; rel=&quot;ugc nofollow&quot;&gt;le script&lt;/a&gt; qui va avec.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; sur &lt;a href=&quot;http://xkcd.com/1597/&quot; class=&quot;urlextern&quot; title=&quot;http://xkcd.com/1597/&quot; rel=&quot;ugc nofollow&quot;&gt;xkcd.com&lt;/a&gt; encore&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Humour&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;humour&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:6,&amp;quot;range&amp;quot;:&amp;quot;5160-&amp;quot;} --&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 01 Mar 2026 12:43:57 +0000</pubDate>
        </item>
        <item>
            <title>utilisation</title>
            <link>https://www.ainw.org/wiki/doku.php?id=informatique:git:utilisation&amp;rev=1733239315&amp;do=diff</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;utilisation&quot;&gt;Utilisation&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Utilisation&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;utilisation&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;1-27&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit2&quot; id=&quot;aide&quot;&gt;Aide&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Il existe de nombreux outils fournis avec git. L&amp;#039;ensemble de ceux décrit ici ne représentent qu&amp;#039;une petite partie des possibilités de Git. Pour apprendre à connaître Git, la curiosité est de mise et quelques commandes existent pour l&amp;#039;aider :
&lt;/p&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Afficher la liste et l&#039;usage des commandes les plus communes&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git &lt;span class=&quot;kw3&quot;&gt;help&lt;/span&gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Afficher la liste et l&#039;usage de l&#039;ensemble des commandes&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git &lt;span class=&quot;kw3&quot;&gt;help&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--all&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Afficher la liste des guides&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git &lt;span class=&quot;kw3&quot;&gt;help&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--guides&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Afficher l&#039;aide d&#039;une commande ou un guide&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git &lt;span class=&quot;kw3&quot;&gt;help&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;command&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Aide&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;aide&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;28-575&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit3&quot; id=&quot;journal_d_evenement&quot;&gt;Journal d&amp;#039;évènement&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
L&amp;#039;ensemble de ces commandes sont utilisables pour un fichier particulier en ajoutant &lt;code&gt;-- &amp;lt;file_path&amp;gt;&lt;/code&gt; à la fin de la commande.
&lt;/p&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Afficher le journal d&#039;évènement&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git log&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Afficher le journal d&#039;évènement avec les statistiques&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git log&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--stat&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Afficher le journal d&#039;évènement des n dernières révisions&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git log&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-n&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Afficher le journal d&#039;évènement sur une ligne&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git log&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--oneline&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Afficher le journal d&#039;évènement entre 2 révisions&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git log&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;commit&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;..&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;commit&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Afficher l&#039;historique condensé des révisions&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git log&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--pretty&lt;/span&gt;=oneline &lt;span class=&quot;re5&quot;&gt;--abbrev-commit&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--graph&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--decorate&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Afficher la liste des étiquettes par date&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git log&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--date-order&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--graph&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--tags&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--simplify-by-decoration&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--pretty&lt;/span&gt;=format:&lt;span class=&quot;st_h&quot;&gt;&#039;%ai %h %d&#039;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Journal d&amp;#039;\u00e9v\u00e8nement&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;journal_d_evenement&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:1,&amp;quot;secid&amp;quot;:3,&amp;quot;range&amp;quot;:&amp;quot;576-1355&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit4&quot; id=&quot;revisions&quot;&gt;Révisions&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Révisionner du code&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Ajouter les fichiers à révisionner&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git add&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;file1&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;file2&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Révisionner les modifications en saisissant un message dans l&#039;éditeur de texte par défaut&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git commit&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Révisionner les modifications en saisissant un titre uniquement sans ouvrir l&#039;éditeur de texte par défaut&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git commit&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-m&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;title&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Révisionner les modifications en saisissant un titre et un message sans ouvrir l&#039;éditeur de texte par défaut&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git commit&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-m&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;title&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-m&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;message&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Il est aussi possible de faire tout ça automatiquement (ce n&#039;est pas recommandé)&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git commit&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-a&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-m&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;title&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-m&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;message&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Annuler l&amp;#039;ajout d&amp;#039;un fichier dans l&amp;#039;index&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git reset&lt;/span&gt; HEAD &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;kw2&quot;&gt;file&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Modifier le nom de l&amp;#039;utilisateur de la dernière révision&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Attention, l&#039;utilisation de cette commande est déconseillée si le code a été partagé.&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git commit&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--amend&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--reset-author&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Modifier la dernière révision &lt;sup&gt;&lt;a href=&quot;#fn__2&quot; id=&quot;fnt__2&quot; class=&quot;fn_top&quot;&gt;2)&lt;/a&gt;&lt;/sup&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Attention, l&#039;utilisation de cette commande est déconseillée si le code a été partagé.&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git commit&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--amend&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Modifier une ancienne révision &lt;sup&gt;&lt;a href=&quot;#fn__3&quot; id=&quot;fnt__3&quot; class=&quot;fn_top&quot;&gt;3)&lt;/a&gt;&lt;/sup&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Pour modifier la révision bbc643cd&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git rebase&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--interactive&lt;/span&gt; bbc643cd^
&lt;span class=&quot;co0&quot;&gt;# À ce moment, l&#039;éditeur de texte par défaut va s&#039;ouvrir pour sélectionner les révisions à modifier.&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Changer pick pour edit en face des révisions à modifier.&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Faire les changements nécessaire et ajouter les fichiers.&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git add&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;file1&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;file2&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Appliquer les changements&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git commit&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--amend&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Poursuivre l&#039;application des changements&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git rebase&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--continue&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Supprimer la dernière révision&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Si la révision n&#039;a pas été partagée et que l&#039;on veut conserver les modifications&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git reset&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--soft&lt;/span&gt; HEAD~&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Si la révision n&#039;a pas été partagée et que l&#039;on veut supprimer les modifications&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git reset&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--hard&lt;/span&gt; HEAD~&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Si la révision a été partagée&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git revert&lt;/span&gt; HEAD&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1 node&quot;&gt;&lt;div class=&quot;li&quot;&gt; Pour aller plus loin&lt;/div&gt;
&lt;ul&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html&quot; class=&quot;urlextern&quot; title=&quot;http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html&quot; rel=&quot;ugc nofollow&quot;&gt; Squashing commits with rebase&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://pioupioum.fr/developpement/git-10-commandes-utiles.html#commit-autre-identite&quot; class=&quot;urlextern&quot; title=&quot;http://pioupioum.fr/developpement/git-10-commandes-utiles.html#commit-autre-identite&quot; rel=&quot;ugc nofollow&quot;&gt;Faire une révision sous une autre identité&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://pioupioum.fr/developpement/git-10-commandes-utiles.html#antidater-commit&quot; class=&quot;urlextern&quot; title=&quot;http://pioupioum.fr/developpement/git-10-commandes-utiles.html#antidater-commit&quot; rel=&quot;ugc nofollow&quot;&gt;Antidater une révision&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://stackoverflow.com/questions/4307095/how-can-i-split-up-a-git-commit-buried-in-history#4307158&quot; class=&quot;urlextern&quot; title=&quot;https://stackoverflow.com/questions/4307095/how-can-i-split-up-a-git-commit-buried-in-history#4307158&quot; rel=&quot;ugc nofollow&quot;&gt;How can I split up a Git commit buried in history?&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;R\u00e9visions&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;revisions&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:2,&amp;quot;secid&amp;quot;:4,&amp;quot;range&amp;quot;:&amp;quot;1356-4141&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit5&quot; id=&quot;branches&quot;&gt;Branches&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Afficher les branches&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Locales&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git branch&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Distantes&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git branch&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-r&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Toutes&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git branch&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-a&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Déjà disponibles dans la branche courante&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git branch&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--merged&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Pas encore disponibles dans la branche courante&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git branch&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--no-merged&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Créer une branche locale&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# La manière rapide&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git checkout&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-b&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# La manière détaillée&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git branch&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git checkout&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Récupérer une branche distante&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Récupérer la liste des branches distantes disponibles&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git fetch&lt;/span&gt; origin
&lt;span class=&quot;co0&quot;&gt;# Récupérer la liste des branches distantes disponibles en supprimant les branches supprimées - version longue&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git fetch&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--prune&lt;/span&gt; origin
&lt;span class=&quot;co0&quot;&gt;# Récupérer la liste des branches distantes disponibles en supprimant les branches supprimées - version courte&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git fetch&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-p&lt;/span&gt; origin
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Création d&#039;une branche locale à partir de la branche distante&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git checkout&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-b&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; origin&lt;span class=&quot;sy0&quot;&gt;/&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Changer le nom d&amp;#039;une branche locale&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git branch&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-m&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;old-branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;new-branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Supprimer une branche locale&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Supprimer une branche qui a été fusionnée&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git branch&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-d&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Forcer la suppression d&#039;une branche&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git branch&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-D&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Supprimer une branche distante&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# La manière compréhensible&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git push&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--delete&lt;/span&gt; origin &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# La manière moins compréhensible au premier abord&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git push&lt;/span&gt; origin :refs&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;remote&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;origin&lt;span class=&quot;sy0&quot;&gt;/&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# et son raccourci&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git push&lt;/span&gt; origin :&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Lier une branche existante à une branche distante&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Syntaxe courte&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git branch&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-u&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;remote_branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;local_branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Syntaxe longue&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git branch&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--set-upstream-to&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;remote_branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;local_branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Supprimer les branches locales obsolètes&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git remote&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;prune&lt;/span&gt; origin&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Comparer un fichier entre 2 branches&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git diff&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch_1&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch_2&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;fichier&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Avec cette syntaxe, la référence peut être une branche, un tag, un commit, ...&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git diff&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;reference_1&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;..&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;reference_2&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;fichier&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Pousser une branche&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Quand les références des branches sont identiques&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git push&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;remote&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Quand les références des branches sont différentes&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git push&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;remote&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;src&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;:&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;dst&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Afficher le point d&amp;#039;origine d&amp;#039;une branche&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git merge-base&lt;/span&gt; HEAD &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Revenir à la branche précédente&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git checkout&lt;/span&gt; -&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1 node&quot;&gt;&lt;div class=&quot;li&quot;&gt; Pour aller plus loin&lt;/div&gt;
&lt;ol&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://gist.github.com/jbgo/1944238&quot; class=&quot;urlextern&quot; title=&quot;https://gist.github.com/jbgo/1944238&quot; rel=&quot;ugc nofollow&quot;&gt;How to recover a git branch you accidentally deleted&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://stackoverflow.com/questions/28932515/how-to-unmerge-a-git-merge#28932585&quot; class=&quot;urlextern&quot; title=&quot;https://stackoverflow.com/questions/28932515/how-to-unmerge-a-git-merge#28932585&quot; rel=&quot;ugc nofollow&quot;&gt;How to unmerge a Git merge?&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Branches&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;branches&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:8,&amp;quot;secid&amp;quot;:5,&amp;quot;range&amp;quot;:&amp;quot;4142-6836&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit6&quot; id=&quot;etiquettes&quot;&gt;Étiquettes&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Lister les étiquettes&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git tag&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Créer une étiquette à usage privé ou temporaire (étiquette légère)&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git tag&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;tagname&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Créer une étiquette à usage public (étiquette annotée)&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git tag&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-a&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;tagname&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Créer une étiquette distante&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
Il faut que l&amp;#039;étiquette existe déjà localement pour pouvoir la créer sur un dépôt distant.
&lt;/p&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Pour créer une seul étiquette&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git push&lt;/span&gt; origin &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;tagname&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Pour créer toutes les étiquettes&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git push&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--tags&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Supprimer étiquette distante &lt;sup&gt;&lt;a href=&quot;#fn__4&quot; id=&quot;fnt__4&quot; class=&quot;fn_top&quot;&gt;4)&lt;/a&gt;&lt;/sup&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# La manière compréhensible&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git push&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--delete&lt;/span&gt; origin &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;tagname&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# La manière moins compréhensible au premier abord&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git push&lt;/span&gt; origin :refs&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;tags&lt;span class=&quot;sy0&quot;&gt;/&amp;lt;&lt;/span&gt;tagname&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# et son raccourci&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git push&lt;/span&gt; origin :&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;tagname&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Remplacer étiquette légère par étiquette annotée &lt;sup&gt;&lt;a href=&quot;#fn__5&quot; id=&quot;fnt__5&quot; class=&quot;fn_top&quot;&gt;5)&lt;/a&gt;&lt;/sup&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Récupérer le code associé à l&#039;étiquette&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git checkout&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;tagname&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Supprimer l&#039;étiquette locale&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git tag&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-d&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;tagname&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Créer l&#039;étiquette annotée antidatée à la date de la révision&lt;/span&gt;
&lt;span class=&quot;re2&quot;&gt;GIT_COMMITTER_DATE&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es4&quot;&gt;$(git show --format=%aD | head -1)&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;git tag&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-a&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;tagname&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Supprimer l&#039;étiquette distante&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git push&lt;/span&gt; origin :refs&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;tags&lt;span class=&quot;sy0&quot;&gt;/&amp;lt;&lt;/span&gt;tagname&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Créer l&#039;étiquette distante&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git push&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--tags&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;\u00c9tiquettes&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;etiquettes&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:20,&amp;quot;secid&amp;quot;:6,&amp;quot;range&amp;quot;:&amp;quot;6837-8396&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit7&quot; id=&quot;notes&quot;&gt;Notes&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Ajouter une note sur un révision&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Sans espace de nom&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git notes&lt;/span&gt; add &lt;span class=&quot;re5&quot;&gt;-m&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;message&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;commit&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Avec espace de nom&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git notes&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--ref&lt;/span&gt;=&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;namespace&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; add &lt;span class=&quot;re5&quot;&gt;-m&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;message&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;commit&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Voir une note&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Sans espace de nom&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git log&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Avec espace de nom (les caractères de remplacement sont supportés)&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git log&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--show-notes&lt;/span&gt;=&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;namespace&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Éditer une note&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Sans espace de nom&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git notes&lt;/span&gt; edit &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;commit&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Avec espace de nom&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git notes&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--ref&lt;/span&gt;=&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;namespace&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; edit &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;commit&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1 node&quot;&gt;&lt;div class=&quot;li&quot;&gt; Pour aller plus loin&lt;/div&gt;
&lt;ol&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://git-scm.com/blog/2010/08/25/notes.html&quot; class=&quot;urlextern&quot; title=&quot;http://git-scm.com/blog/2010/08/25/notes.html&quot; rel=&quot;ugc nofollow&quot;&gt;Note to Self&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://alblue.bandlem.com/2011/11/git-tip-of-week-git-notes.html&quot; class=&quot;urlextern&quot; title=&quot;http://alblue.bandlem.com/2011/11/git-tip-of-week-git-notes.html&quot; rel=&quot;ugc nofollow&quot;&gt;Git Tip of the Week: Git Notes&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Notes&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;notes&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:26,&amp;quot;secid&amp;quot;:7,&amp;quot;range&amp;quot;:&amp;quot;8397-9133&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit8&quot; id=&quot;divers&quot;&gt;Divers&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Créer et appliquer un patch &lt;sup&gt;&lt;a href=&quot;#fn__6&quot; id=&quot;fnt__6&quot; class=&quot;fn_top&quot;&gt;6)&lt;/a&gt;&lt;/sup&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Création d&#039;un fichier patch&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git format-patch&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;commit.1&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;..&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;commit.2&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--stdout&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;file.patch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Création d&#039;un fichier patch en changeant le chemin d&#039;accès aux fichiers&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git format-patch&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;commit.1&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;..&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;commit.2&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--src-prefix&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;a/new/path/&amp;quot;&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--dst-prefix&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;b/new/path/&amp;quot;&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--stdout&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;file.patch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Vérification du patch&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git apply&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--check&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;file.patch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Application des modifications apportées par le patch&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git apply&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;file.patch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Application des commits apportés par le patch&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git am&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;file.patch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Modifier l&amp;#039;historique&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git rebase&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-i&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;commit&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Ajouter des fichiers à l&amp;#039;index&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git add&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-i&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Récupérer un fichier d&amp;#039;un révision particulière&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git checkout&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;treeish&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;path&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Afficher un fichier d&amp;#039;un révision particulière&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git show&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;treeish&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;:&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;kw2&quot;&gt;file&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Voir les modifications effectuées&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Modifications des fichiers du répertoire de travail&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git diff&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Modification des fichiers de la zone de transit&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git diff&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--staged&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git diff&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--cached&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Vérification des erreurs de caractères blancs&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git diff&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--check&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Modification entre deux branches&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git diff&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;..&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Modification entre deux branches (nom et statut)&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git diff&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--name-status&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;..&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Modification entre deux branches (nom seulement)&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git diff&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--name-only&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;..&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;branch&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_start&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:9,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;div class=&quot;wrap_tip plugin_wrap&quot;&gt;
&lt;p&gt;
Il est possible de filtrer les résultats sur le type de changement en utilisant &lt;code&gt;--diff-filter&lt;/code&gt;. Cette option prend une ou plusieurs valeurs dans la liste suivante :
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;code&gt;A&lt;/code&gt; pour les fichiers ajoutés.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;code&gt;D&lt;/code&gt; pour les fichiers supprimés.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;code&gt;M&lt;/code&gt; pour les fichiers modifiés.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;code&gt;R&lt;/code&gt; pour les fichiers déplacés.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;plugin_wrap_end&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;secid&amp;quot;:10,&amp;quot;range&amp;quot;:&amp;quot;0-&amp;quot;} --&gt;&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Mettre de côté des modifications (&lt;a href=&quot;http://git-scm.com/book/en/Git-Tools-Stashing&quot; class=&quot;urlextern&quot; title=&quot;http://git-scm.com/book/en/Git-Tools-Stashing&quot; rel=&quot;ugc nofollow&quot;&gt;documentation officielle&lt;/a&gt;)&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Mettre de côté toutes les modifications&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git stash&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Mettre de côté toutes les modifications à l&#039;exception de celles présentent dans l&#039;index&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git stash&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--keep-index&lt;/span&gt;
&lt;span class=&quot;co0&quot;&gt;# Lister les réserves de code&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git stash&lt;/span&gt; list
&lt;span class=&quot;co0&quot;&gt;# Appliquer la dernière réserve de code&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git stash&lt;/span&gt; apply
&lt;span class=&quot;co0&quot;&gt;# Supprimer la dernière réserve de code&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git stash&lt;/span&gt; drop
&lt;span class=&quot;co0&quot;&gt;# Afficher les modifications contenues dans le &amp;quot;stash&amp;quot;&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git stash&lt;/span&gt; show &lt;span class=&quot;re5&quot;&gt;-p&lt;/span&gt; stash&lt;span class=&quot;sy0&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Afficher la liste des fichiers d&amp;#039;une révision&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git diff-tree&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--no-commit-id&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--name-only&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-r&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;treeish&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Dupliquer un projet&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Duplique un projet dans un répertoire éponyme créé automatiquement&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git clone&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;project&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Duplique un projet dans un répertoire sélectionné&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git clone&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;project&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;folder&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Créer une archive d&amp;#039;un projet&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git archive&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--format&lt;/span&gt;=tar.gz &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;treeish&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;kw2&quot;&gt;file&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Dupliquer un dépôt &lt;sup&gt;&lt;a href=&quot;#fn__7&quot; id=&quot;fnt__7&quot; class=&quot;fn_top&quot;&gt;7)&lt;/a&gt;&lt;/sup&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Faire un clone brut du projet&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git clone&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--bare&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;old-repository&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Faire un miroir du projet&lt;/span&gt;
&lt;span class=&quot;kw3&quot;&gt;cd&lt;/span&gt; old-repository
&lt;span class=&quot;kw2&quot;&gt;git push&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--mirror&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;new-repository&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Suppression du clone brut&lt;/span&gt;
&lt;span class=&quot;kw3&quot;&gt;cd&lt;/span&gt; -
&lt;span class=&quot;kw2&quot;&gt;rm&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-rf&lt;/span&gt; old-repository&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Afficher la liste des branches actives&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# Sans filtre&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git ls-remote&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--heads&lt;/span&gt; origin
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Avec un filtre simple&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git ls-remote&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--heads&lt;/span&gt; origin master
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# Avec un filtre complexe&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;git ls-remote&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;--heads&lt;/span&gt; origin master develop release\&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Afficher la liste des fichiers gérés&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;git ls-tree&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-r&lt;/span&gt; master &lt;span class=&quot;re5&quot;&gt;--name-only&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Divers&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;divers&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:29,&amp;quot;secid&amp;quot;:8,&amp;quot;range&amp;quot;:&amp;quot;9134-&amp;quot;} --&gt;&lt;div class=&quot;footnotes&quot;&gt;
&lt;div class=&quot;fn&quot;&gt;&lt;sup&gt;&lt;a href=&quot;#fnt__2&quot; id=&quot;fn__2&quot; class=&quot;fn_bot&quot;&gt;2)&lt;/a&gt;&lt;/sup&gt; 
&lt;div class=&quot;content&quot;&gt;&lt;a href=&quot;http://stackoverflow.com/questions/179123/how-do-i-edit-an-incorrect-commit-message-in-git#179147&quot; class=&quot;urlextern&quot; title=&quot;http://stackoverflow.com/questions/179123/how-do-i-edit-an-incorrect-commit-message-in-git#179147&quot; rel=&quot;ugc nofollow&quot;&gt;How to modify existing, unpushed commits?&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;fn&quot;&gt;&lt;sup&gt;&lt;a href=&quot;#fnt__3&quot; id=&quot;fn__3&quot; class=&quot;fn_bot&quot;&gt;3)&lt;/a&gt;&lt;/sup&gt; 
&lt;div class=&quot;content&quot;&gt;&lt;a href=&quot;http://stackoverflow.com/questions/1186535/how-to-modify-a-specified-commit#1186549&quot; class=&quot;urlextern&quot; title=&quot;http://stackoverflow.com/questions/1186535/how-to-modify-a-specified-commit#1186549&quot; rel=&quot;ugc nofollow&quot;&gt;How to modify a specified commit in git?&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;fn&quot;&gt;&lt;sup&gt;&lt;a href=&quot;#fnt__4&quot; id=&quot;fn__4&quot; class=&quot;fn_bot&quot;&gt;4)&lt;/a&gt;&lt;/sup&gt; 
&lt;div class=&quot;content&quot;&gt;&lt;a href=&quot;http://stackoverflow.com/questions/5480258/how-to-delete-a-remote-git-tag#5480292&quot; class=&quot;urlextern&quot; title=&quot;http://stackoverflow.com/questions/5480258/how-to-delete-a-remote-git-tag#5480292&quot; rel=&quot;ugc nofollow&quot;&gt;How to delete a git remote tag?&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;fn&quot;&gt;&lt;sup&gt;&lt;a href=&quot;#fnt__5&quot; id=&quot;fn__5&quot; class=&quot;fn_bot&quot;&gt;5)&lt;/a&gt;&lt;/sup&gt; 
&lt;div class=&quot;content&quot;&gt;&lt;a href=&quot;http://sartak.org/2011/01/replace-a-lightweight-git-tag-with-an-annotated-tag.html&quot; class=&quot;urlextern&quot; title=&quot;http://sartak.org/2011/01/replace-a-lightweight-git-tag-with-an-annotated-tag.html&quot; rel=&quot;ugc nofollow&quot;&gt;Replace a Lightweight Git Tag with an Annotated Tag&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;fn&quot;&gt;&lt;sup&gt;&lt;a href=&quot;#fnt__6&quot; id=&quot;fn__6&quot; class=&quot;fn_bot&quot;&gt;6)&lt;/a&gt;&lt;/sup&gt; 
&lt;div class=&quot;content&quot;&gt;&lt;a href=&quot;https://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/&quot; class=&quot;urlextern&quot; title=&quot;https://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/&quot; rel=&quot;ugc nofollow&quot;&gt;How to create and apply a patch with Git&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;fn&quot;&gt;&lt;sup&gt;&lt;a href=&quot;#fnt__7&quot; id=&quot;fn__7&quot; class=&quot;fn_bot&quot;&gt;7)&lt;/a&gt;&lt;/sup&gt; 
&lt;div class=&quot;content&quot;&gt;&lt;a href=&quot;https://help.github.com/articles/duplicating-a-repository/&quot; class=&quot;urlextern&quot; title=&quot;https://help.github.com/articles/duplicating-a-repository/&quot; rel=&quot;ugc nofollow&quot;&gt;Duplicating a repository&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 03 Dec 2024 15:21:55 +0000</pubDate>
        </item>
        <item>
            <title>variables_d_environnement</title>
            <link>https://www.ainw.org/wiki/doku.php?id=informatique:git:variables_d_environnement&amp;rev=1733239362&amp;do=diff</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;variables_d_environnement&quot;&gt;Variables d&amp;#039;environnement&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;GIT_SEQUENCE_EDITOR&lt;/strong&gt; : Cette variable surcharge l&amp;#039;éditeur configuré lors de l&amp;#039;édition de la liste d&amp;#039;opérations à effectuer lors d&amp;#039;un &lt;em&gt;rebase&lt;/em&gt; interractif.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;GIT_TERMINAL_PROMPT&lt;/strong&gt; &lt;sup&gt;&lt;a href=&quot;#fn__1&quot; id=&quot;fnt__1&quot; class=&quot;fn_top&quot;&gt;1)&lt;/a&gt;&lt;/sup&gt;: Si cette variable est initialisée à &lt;code&gt;0&lt;/code&gt;, &lt;code&gt;git&lt;/code&gt; n&amp;#039;affichera pas l&amp;#039;invite de commande (par exemple, pour demander les identifiants de connexion HTTP).&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;# La commande suivante va s&#039;arrêter en erreur sans proposer l&#039;invite de commande&lt;/span&gt;
&lt;span class=&quot;re2&quot;&gt;GIT_TERMINAL_PROMPT&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;git clone&lt;/span&gt; https:&lt;span class=&quot;sy0&quot;&gt;//&lt;/span&gt;github.com&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;some&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;non-existing-repo&lt;/pre&gt;

&lt;/div&gt;
&lt;div class=&quot;footnotes&quot;&gt;
&lt;div class=&quot;fn&quot;&gt;&lt;sup&gt;&lt;a href=&quot;#fnt__1&quot; id=&quot;fn__1&quot; class=&quot;fn_bot&quot;&gt;1)&lt;/a&gt;&lt;/sup&gt; 
&lt;div class=&quot;content&quot;&gt;&lt;a href=&quot;https://serverfault.com/questions/544156/git-clone-fail-instead-of-prompting-for-credentials&quot; class=&quot;urlextern&quot; title=&quot;https://serverfault.com/questions/544156/git-clone-fail-instead-of-prompting-for-credentials&quot; rel=&quot;ugc nofollow&quot;&gt;automation - git clone - fail instead of prompting for credentials - Server Fault&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 03 Dec 2024 15:22:42 +0000</pubDate>
        </item>
    </channel>
</rss>
