Files
dotfiles-2022/bin/dtfrestore.sh

5 lines
318 B
Bash

git clone -b base --bare $2 $1
git --git-dir="$2" --work-tree="$HOME" config --local status.showUntrackedFiles no
git --git-dir="$2" --work-tree="$HOME" checkout || echo -e 'Deal with conflicting files, then run (possibly with -f flag if you are ok with overwriting)\ngit --git-dir="$2" --work-tree="$HOME" checkout'