Inspired by: https://drewdevault.com/2019/12/30/dotfiles.html
- Navigate to $HOME:
cd ~
. - Turn it into a git repo:
git init
. - Add this repo as a remote:
git remote add origin git@github.com:JustinDFuller/dotfiles.git
. - Fetch the files
git fetch
. - Checkout the main branch
git checkout -f main
. - Reload the terminal and everything is there 👍
If you want to add a file, you must force add it due to the gitignore
. However, after that, it will stay tracked. git add -f .tmux.conf
.