diff --git a/tools/upgrade.sh b/tools/upgrade.sh index cf5d007..5e085f8 100644 --- a/tools/upgrade.sh +++ b/tools/upgrade.sh @@ -9,6 +9,11 @@ CLEAR_COLOR="\033[0m" cd $HOME/.dotfiles echo "1) ${GREEN}Upgrading dotfiles$CLEAR_COLOR" + +# ignore local changes + +git reset --hard HEAD > /dev/null 2>&1 + if ! git pull > /dev/null 2>&1 then echo "$HOME/.dotfiles synced"