get all branches git prune code example Example: git prune local branches npx git-removed-branches --prune