Origin: https://news.ycombinator.com/item?id=11071754
You can replicate your home directory on a new machine using the following command:
git clone --separate-git-dir=~/.dotfiles [email protected]:shiftgeist/horiceon.git ~
# Without a clean home directory
git clone --separate-git-dir=$HOME/.dotfiles [email protected]:shiftgeist/horiceon.git $HOME/dotfiles-tmp
cp ~/dotfiles-tmp/.gitmodules ~ # If you use Git submodules
rm -r ~/dotfiles-tmp/
alias horiceon="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME"
horiceon $GIT_COMMAND
- Project commits follow the structure of Conventional Commits