/dotfiles

Primary LanguageShell

installation

clone bare repository

git clone --bare https://github.com/netrusov/dotfiles.git $HOME/.dotfiles

create alias

alias dot='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'

do not show untracked files by default

dot config --local status.showUntrackedFiles no

restore staged files and review diff

dot restore --staged ~
dot diff --diff-filter=M

resolve conflicts or just reset all tracked files to a commited state

dot checkout -- ~