Deebster,
@Deebster@programming.dev avatar

<span style="color:#323232;">function delete-branches() {
</span><span style="color:#323232;">  git branch |
</span><span style="color:#323232;">    grep --invert-match '*' |
</span><span style="color:#323232;">    cut -c 3- |
</span><span style="color:#323232;">    fzf --multi --preview="git log {} --" |
</span><span style="color:#323232;">    xargs --no-run-if-empty git branch --delete --force
</span><span style="color:#323232;">}
</span>

This is really slick.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • kavyap
  • thenastyranch
  • GTA5RPClips
  • tester
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • cisconetworking
  • megavids
  • khanakhh
  • normalnudes
  • osvaldo12
  • cubers
  • tacticalgear
  • Durango
  • ethstaker
  • modclub
  • anitta
  • provamag3
  • Leos
  • JUstTest
  • lostlight
  • All magazines