Files

9 lines
245 B
Bash
Raw Permalink Normal View History

#!/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