Files
dotfiles/dot_local/bin/executable_gdc
T

9 lines
245 B
Bash
Raw 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