alias dotgit='/usr/bin/git --git-dir=$HOME/.config/.dotfiles/ --work-tree=$HOME' git clone --bare https://github.com/test482/dotfiles.git ~/.config/.dotfiles # checkout to specify branch dotgit checkout $BRANCH_NAME # or create new branch dotgit switch --create $NEW_BRANCH # backup configuration files that might already exist if needed # mkdir -p ~/config-backup && dotgit checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} ~/config-backup/{} # dotgit checkout dotgit config --local status.showUntrackedFiles no dotgit submodule update --init # ignore some files change # dotgit ls-files -v | rg "^S" for check skiped file list dotgit update-index --skip-worktree $HOME/.ssh/authorized_keys
There was an error while loading. Please reload this page.