Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/mxdvl/mxdvl. All the stuff I have amassed over the years: websites, scripts, dotfiles, musings… www.mxdvl.com/hi
Something went wrong. Try again.
377 B · 10 lines
1234567891011function git_remove_gone_branches() { # from https://stackoverflow.com/a/61935602/1577447, except works with squash & merge strategy. git fetch -p git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D}
# Merge all matching branches into localfunction find_remaining_dependabot_branches() { git branch -r --list "origin/dependabot/*" --no-merged}