News for hackers. Stuff that matters.
Re:Ask HN: What do you use to manage dotfiles? by seliopou on Wednesday February 10, 2016 @06:23AM (#11071976)
To complete the description of the workflow (for others), you can replicate your home directory on a new machine using the following command:

   git clone --separate-git-dir=~/.myconf /path/to/repo ~
This is the best solution I've seen so far, and I may adopt it next time I get the itch to reconfigure my environment.
Re:Ask HN: What do you use to manage dotfiles? by telotortium on Thursday February 11, 2016 @04:26AM (#11079145)
For posterity, note that this will fail if your home directory isn't empty. To get around that, clone the repo's working directory into a temporary directory first and then delete that directory,

    git clone --separate-git-dir=$HOME/.myconf /path/to/repo $HOME/myconf-tmp
    cp ~/myconf-tmp/.gitmodules ~  # If you use Git submodules
    rm -r ~/myconf-tmp/
    alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME'
and then proceed as before.
Re:Ask HN: What do you use to manage dotfiles? by durdn on Wednesday February 17, 2016 @07:18AM (#11117304)
I found out exactly the same problem :)