<p><pre><code>    cd ~
    git init
</code></pre>
And add this to a .gitignore:<p><pre><code>    # Ignore everything
    *

    # Except the dotfiles I explicitely want to share
    !.vimrc
    !.tmux.conf
    # ...</code></pre>