2026-11-02 09:14:11 -05: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
|