3

I have lots of test branches on my local machine and some old branches which were later merged and deleted from remote repository. How can I find the list of all such branches?

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

ua741
  • 1,416
  • 15
  • 23

1 Answers1

1

Look at this question: Viewing Unpushed Git Commits

You should be able to use git log to get your answer. Specifically...

git log --branches --not --remotes

To look for unmerged branches: git finding unmerged branches

git branch --no-merged master
Community
  • 1
  • 1
M. K. Hunter
  • 1,622
  • 3
  • 19
  • 27
  • This does not actually give me the list of unpublished branches.I think it just list out commits which are not pushed. – ua741 Nov 25 '14 at 09:19
  • I found another thing for you to try. Be sure to look at the link for the full description. – M. K. Hunter Nov 25 '14 at 11:43