3 ## How I manage dotfiles
4 This method of managing dotfiles was inspired by [this](https://www.youtube.com/watch?v=tBoLDpTWVOM) video.
7 Run in your home directory:
9 git init --bare .dotfiles
12 Then for ease of use add this alias to your bashrc (etc):
14 alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
17 After reloading the shell, run:
19 dotfiles config --local status.showUntrackedFiles no
22 Now you can use the normal git commands like so
26 dotfiles commit -m 'added .bashrc'