(no title)
NicolaiS | 9 months ago
git clone --bare git@github.com:.../dotfiles.git $HOME/.dotfiles
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME checkout
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles config --local status.showUntrackedFiles no
Now the "dotfiles"-alias can be used like git, "dotfiles add, checkout, log", no symlinks are needed and you avoid "contaminating" subdirs of $HOME (git searches parent dirs for ".git", so a ".git" folder in $HOME kinda sucks)
andy24|9 months ago
abound|9 months ago
It in turn references HN, to come full circle.
[1] https://wiki.archlinux.org/title/Dotfiles#Tracking_dotfiles_...
unknown|9 months ago
[deleted]