Different Global Git Init template config based on multiple github instances
<p>I am trying to enable couple of git hooks globally for all my commits at work. I achieved this by setting </p>

<pre><code>git config --global init.templatedir '~/.git_template'
</code></pre>

<p>I want to enable this in order to make sure all my commit msg at work has a corresponding bug id. This works exactly as I expected.</p>

<p>Now my problem is when I want to commit something to my personal github account, these hooks are triggered which I do not want. </p>

<p>How can I restrict these global templates to a particular github instance only ? I was able to seperate the SSH keys by configuring <code>$HOME/.ssh/config</code> file. Is something similar possible here also ?</p>

<p>Few restrictions I have:</p>

<ul>
<li>Server side hooks are not allowed at work instance</li>
<li>If I have to set <code>$REPO/.git/hooks</code> folder manually, it defeats the purpose as I have to always remind myself to set them</li>
</ul>