A long time ago, I wrote auseful set of git aliasesto support the GitHub flow. My favorite alias wasbdonewhich would:Checkout the default branch.Rungit upto make sure you’re up to date.Rungit bcleanto delete all the branches that have been merged into the default branch.And this worked great for a long time. The way it worked was it would list all the branches that have been merged into the default branch and then delete them. In my case, I didn’t usegit branch --mergedto list merged branches because I didn’t know about it at the time.However, my aliases stopped working for me recently after j
...
继续阅读
(22)