I use a GitHub PR-based workflow, where merging to master is done server-side without using my git client. This means that I have local branches that I have to switch away from and manually clean up.
Preferred solution
A way to delete git local git branches that have been merged upstream. Right now I do this by running git branch --merged | egrep -v "(^\*|origin/master)" | xargs git branch -d which says "delete any local branch that has been merged into the current branch except the current branch itself and origin/master (which is a bit redundant but I have it there just in case). I don't expect this exact workflow to show up in Sublime Merge but it would be nice to have something like it.
Alternatives
Maybe flagging branches that have been merged into origin/master or something, I'm not particularly sure.
Problem description
I use a GitHub PR-based workflow, where merging to master is done server-side without using my git client. This means that I have local branches that I have to switch away from and manually clean up.
Preferred solution
A way to delete git local git branches that have been merged upstream. Right now I do this by running
git branch --merged | egrep -v "(^\*|origin/master)" | xargs git branch -d
which says "delete any local branch that has been merged into the current branch except the current branch itself andorigin/master
(which is a bit redundant but I have it there just in case). I don't expect this exact workflow to show up in Sublime Merge but it would be nice to have something like it.Alternatives
Maybe flagging branches that have been merged into
origin/master
or something, I'm not particularly sure.