git init --bare "$HOME/.dotfiles"
alias dotfiles="/usr/bin/env git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME"
dotfiles remote add origin https://github.com/bethebunny/dotfiles
dotfiles fetch
dotfiles checkout origin/master
# most dotfiles now available, not necessarily active
dotfiles co -b master
dotfiles branch --set-upstream-to=origin/master
# if you want to be able to push to github
gh auth login- Restart shell/vim/whatever to make everything take effect
- Add new dotfiles with
dotfiles add .blah && dotfiles commit -m 'adding .blah' && dotfiles push - Sync with
dotfiles pull