HomeWeecology's WikiComputingGit TipsGit TipsDeleting all merged branches (locally)git switch main git branch --merged | egrep -v "(^\*|master|main|dev)" | xargs git branch -d Source: https://stackoverflow.com/a/6127884/133513PreviousCollaborating Using Git & GitHubNextGitHub Actions