Remove tracking branches no longer on remote
git remote prune origin prunes tracking branches not on the remote. git branch –merged lists branches that have been merged into the current branch. xargs git branch -d deletes branches listed on standard input. Be careful deleting branches listed by git branch –merged. The list could include master or other branches you’d prefer not to … Read more