Clone using following command:
export REPO="git@github.com:cenkalti/dotfiles"
# for read-only access
# export REPO="https://github.com/cenkalti/dotfiles.git"
curl 'https://raw.githubusercontent.com/cenkalti/dotfiles/master/.install.sh' | bash
Add this to your .bashrc
/.zshrc
file:
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
Checkout files:
dotfiles reset --hard
Use dotfiles
command instead of git
:
dotfiles pull
dotfiles add .vimrc
dotfiles commit -m "add .vimrc file"
dotfiles push