Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 1.01 KB

README.md

File metadata and controls

39 lines (33 loc) · 1.01 KB

Install on a new system

  1. Add alias to bashrc/zshrc
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
  1. Clone the repo
git clone --bare <git-repo-url> $HOME/.dotfiles
  1. Define the alias in the current shell scope:
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
  1. Checkout the actual content from the bare repository to your $HOME:
config checkout

The step above might fail with a message like:

error: The following untracked working tree files would be overwritten by checkout:
.bashrc
.gitignore

Please move or remove them before you can switch branches. Re-run the check out if you had problems

config checkout
  1. Set the flag showUntrackedFiles to no on this specific (local) repository:
config config --local status.showUntrackedFiles no

You're done, from now on you can now type config commands to add and update your dotfiles!