News for hackers. Stuff that matters.
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 :)