#! /bin/sh read -p "You really want to nuke your remote repo? (yes/no) $(git remote get-url origin) " confirmation if [ "$confirmation" = "yes" ]; then mv .git/config . rm -rf .git git init rm .git/config mv config .git/ echo "I will push to :" git remote get-url origin git add . git commit -m "Initial commit" git push -u --force origin main else echo "Abort." fi