mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
10 lines
288 B
Fish
10 lines
288 B
Fish
function gdc --description "Discard all git changes with gum confirmation"
|
|
if gum confirm "Discard all uncommitted changes? This is irreversible."
|
|
git reset --hard HEAD
|
|
git clean -fd
|
|
echo "Changes wiped."
|
|
else
|
|
echo "Operation aborted."
|
|
end
|
|
end
|