Github- How can I find unpublished branches on my local machine?

I have a lot of test branches on my local machine and some old branches that were later merged and removed from the remote repository. How can I find a list of all such branches?

Note. I don't want to delete them all without looking at them once, so a fresh start is not an option for me.

+3


source to share


1 answer


Have a look at this question: View Unpushed Git Commits

You can use git log

to get an answer. In particular...

git log --branches --not --remotes

      



Search for unarmed branches: git find unlinked branches

git branch --no-merged master

      

+1


source







All Articles