Delete merged local git branch & tag in one command

git branch --merged | xargs git branch -d
git tag --merged | xargs git tag -d
git branch --merged | %{git branch -d $_.trim()}
git tag --merged | %{git tag -d $_.trim()}


Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Keep Your Secrets of Android App in Firestore

Moving to Kotlin Multiplatform (Part 1/4)

Creating a minimal kernel development setup using QEMU and Archlinux

“Zero-Click” Content Creation

Zero-Click Content Creation header text

Brandon Bernard dies by lethal injection 90th federal execution of 2020

Senior Front-end developer in Streamloots

Learning how to walk (103)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ittipol Thirasat

Ittipol Thirasat


More from Medium

Git & Git Commands

Deploying Linux In the Cloud

Git and Github

Importance of Git