lewagon/dotfiles

git sweep should also work on main branch

aggy-k opened this issue · 0 comments

Problem
sweep = !git branch --merged master | grep -v 'master$' | xargs git branch -d && git remote prune origin
This only works on master branch, but now with gh repo create it will default 'main' branch as the master branch

Suggestion
git sweep should also work when the default branch is main and not master