2026-08-10 15:15:06 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
# Discard all git changes with gum confirmation.
|
|
|
|
|
if gum confirm "Discard all uncommitted changes? This is irreversible."; then
|
|
|
|
|
git reset --hard HEAD
|
|
|
|
|
git clean -fd
|
|
|
|
|
echo "Changes wiped."
|
|
|
|
|
else
|
|
|
|
|
echo "Operation aborted."
|
|
|
|
|
fi
|