4 ms·
cd ~ git init And add this to a .gitignore: # Ignore everything * # Except the dotfiles I explicitely want to share !.vimrc !.tmux.co
by thiht 11y ago
cd ~
git init
And add this to a .gitignore:
# Ignore everything
*
# Except the dotfiles I explicitely want to share
!.vimrc
!.tmux.conf
# ...
- skeoh 11y agoFun fact! `cd` is equivalent to `cd ~` -- that is to say that the directory is optional and defaults to $HOME.