Skip to content

Instantly share code, notes, and snippets.

@scotthelm
Created February 2, 2018 02:00
Show Gist options
  • Save scotthelm/19ad841a4b7275cecbbf73fa721a7561 to your computer and use it in GitHub Desktop.
Save scotthelm/19ad841a4b7275cecbbf73fa721a7561 to your computer and use it in GitHub Desktop.
Create bare config git repository for dotfiles
git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.zshenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment