Is there an easy way to list branches that have an open PR on GitHub on your command line? I want something like: ``` $ hub pr-branches * schneems/warn-more-recent-version-available * schneems/force-changelog ```
Which can be scripted :) git branch --merged | grep -v "\*" | grep -v master | grep -v ಠ_ಠ | xargs -n 1 git branch -d git remote prune origin git branch -r --merged | grep origin | grep -v "\*" | grep -v master | xargs -L1 | cut -d"/" -f2- | xargs -n 1 git push origin --delete
-
-
I hoard git branches like there is no tomorrow. Looks like this works for my case:https://twitter.com/schneems/status/1177320430564184069 …
-
My git-done script fetches, rebases interactively onto master, pushes the branch, ff merges, pushes, and deletes the branch. It has some safety checks like not overwriting things and white space checks but assumes I’ve run tests.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.