Learn how to remove merged branches from your local machine in Git. The command 'git fetch -p && git branch -vv | awk '/:gone]/{print $1}' | xargs git branch -d' fetches updates from the remote repository, identifies local branches with deleted upstream branches, and deletes those local branches.

2m read timeFrom dev.to
Post cover image
9 Comments

Sort: