mv .tmux.conf .tmux.conf.old
mv .bashrc .bashrc.old
mkdir ~/.dotfiles
git init --bare ~/.dotfiles
alias dotfiles='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
dotfiles branch -M main
dotfiles checkout main
dotfiles config status.showUntrackedFiles no
dotfiles remote add origin https://github.com/tlietz/dotfiles.git
dotfiles pull origin main
The original article that inspired thus workflow