<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Productivité on FtBx.fr</title><link>https://ftbx.fr/tags/productivit%C3%A9/</link><description>Recent content in Productivité on FtBx.fr</description><image><title>FtBx.fr</title><url>https://ftbx.fr/images/placeholder-image.jpg</url><link>https://ftbx.fr/images/placeholder-image.jpg</link></image><generator>Hugo -- 0.146.6</generator><language>fr</language><copyright>2025 ftbx.fr - This work is licensed under CC BY-NC-SA 4.0</copyright><lastBuildDate>Sun, 26 May 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://ftbx.fr/tags/productivit%C3%A9/index.xml" rel="self" type="application/rss+xml"/><item><title>.gitconfig includeIf : ma config Git différente selon le dossier</title><link>https://ftbx.fr/posts/gitconfig-includeif-ma-config-git-differente-selon-e-dossier/</link><pubDate>Sun, 26 May 2024 00:00:00 +0000</pubDate><guid>https://ftbx.fr/posts/gitconfig-includeif-ma-config-git-differente-selon-e-dossier/</guid><description>&lt;p>J&amp;rsquo;ai deux vies Git : une pro (Gitlab d&amp;rsquo;entreprise, email pro, clé SSH pro) et une
perso (GitHub perso, email perso, clé SSH perso). Avant d&amp;rsquo;utiliser ce qui suit, il m&amp;rsquo;est arrivé de devoir réécrire l&amp;rsquo;historique git parce que j&amp;rsquo;avais commit avec la mauvaise identité.&lt;/p>
&lt;p>&lt;code>includeIf&lt;/code> règle ça. On définit une config différente selon le chemin
du repo.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-ini" data-lang="ini">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># ~/.gitconfig&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">[includeIf &amp;#34;gitdir:~/dev/michelin/&amp;#34;]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">path&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="s">~/.gitconfig-michelin&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">[includeIf &amp;#34;gitdir:~/dev/perso/&amp;#34;]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">path&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="s">~/.gitconfig-perso&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Et chaque fichier ne contient que les différences :&lt;/p></description></item></channel></rss>