To start tracking dotfiles in git:
cd $HOME
mkdir .dotfiles
cd .dotfiles
git init .
# Copy the setup code to clipboard first
pbpaste > setup
chmod +x setup
mkdir shared
# Copy the symlinks.sh code to the clipboard
pbpaste > shared/symlinks.sh
# make a dotfiles repo on github
git remote add origin <your repo url>
git add .
git commit -m 'first commit'
git push -u origin master
cd ~/.dotfiles
mv ~/.bashrc bashrc
mv ~/.bash_profile bash_profile
# Make sure there aren't secret keys in your dotfiles!!!!
# 🚨
symlink_dotfile bashrc ~/.bashrc
symlink_dotfile bash_profile ~/.bash_profile
./setup
git add . && git commit -m "Moved bash shell files to dotfiles"
git push