For posterity, note that this will fail if your home directory isn&#x27;t empty. To get around that, clone the repo&#x27;s working directory into a temporary directory first and then delete that directory,<p><pre><code>    git clone --separate-git-dir=$HOME&#x2F;.myconf &#x2F;path&#x2F;to&#x2F;repo $HOME&#x2F;myconf-tmp
    cp ~&#x2F;myconf-tmp&#x2F;.gitmodules ~  # If you use Git submodules
    rm -r ~&#x2F;myconf-tmp&#x2F;
    alias config=&#x27;&#x2F;usr&#x2F;bin&#x2F;git --git-dir=$HOME&#x2F;.myconf&#x2F; --work-tree=$HOME&#x27;
</code></pre>
and then proceed as before.