Created
          June 15, 2011 16:08 
        
      - 
      
- 
        Save rwaldron/1027426 to your computer and use it in GitHub Desktop. 
    Count number of branches in a repo
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | git branch | wc -l | 
Thank you @cedricbastin! And I guess @rwaldron for creating this gist in the first place!
Can we get count against a single user in the repo?
You can see the explanation of this command here
@cedricbastin
git branch --all | wc -lthis command list both remote-tracking branches and local branches.
Count branches:
- Local only: git branch | wc -l
- Remote only: git branch --remotes | wc -l
- All (local + remote): git branch --all | wc -l
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
git branch --all | wc -l