Skip to content

Instantly share code, notes, and snippets.

@rwaldron
Created June 15, 2011 16:08
Show Gist options
  • Save rwaldron/1027426 to your computer and use it in GitHub Desktop.
Save rwaldron/1027426 to your computer and use it in GitHub Desktop.
Count number of branches in a repo
git branch | wc -l
@soufian-ze
Copy link

@cedricbastin
git branch --all | wc -l this command list both remote-tracking branches and local branches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment