Skip to content

Instantly share code, notes, and snippets.

View valsaven's full-sized avatar
🩸
赤い

Val Saven valsaven

🩸
赤い
View GitHub Profile
@valsaven
valsaven / gitDeleteMultiStash.sh
Created May 19, 2021 08:25 — forked from TheBox193/gitDeleteMultiStash.sh
Selectively bulk delete git stash files.
#!/bin/bash
if [ ! -d ".git" ]; then
echo "Not a git Directory"
exit 1
fi
function getStashesToRemove {
git stash list | while read -r line;
do
read -p "remove branch: $line (y/N)?" answer </dev/tty;