From 0c913f1e421b9d47c052350c4c1d619e4ac6a297 Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Mon, 13 Apr 2026 21:45:43 +0200 Subject: Initial commit --- artix/home/.local/bin/gitzero | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 artix/home/.local/bin/gitzero (limited to 'artix/home/.local/bin/gitzero') diff --git a/artix/home/.local/bin/gitzero b/artix/home/.local/bin/gitzero new file mode 100755 index 0000000..6006f50 --- /dev/null +++ b/artix/home/.local/bin/gitzero @@ -0,0 +1,18 @@ +#! /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 -- cgit v1.2.3