- Note: Less is More
- Clone as non-bare repo and place in arbitrary location(tmp)
git clone \
--separate-git-dir=$HOME/dotfiles \
https://github.com/ysxninja/dotfiles.git \
dotfiles-tmp
- copy the snapshot from tmp dir to the correct locations
rsync --recursive --verbose --exclude '.git' dotfiles-tmp/ $HOME/
- remove the tmp dir
rm -rf dotfiles-tmp