Skip to content

Instantly share code, notes, and snippets.

@JeremyNevill
Created March 21, 2017 13:16
Show Gist options
  • Select an option

  • Save JeremyNevill/a22ff228f163e5f1d8b4ff6ab81885ec to your computer and use it in GitHub Desktop.

Select an option

Save JeremyNevill/a22ff228f163e5f1d8b4ff6ab81885ec to your computer and use it in GitHub Desktop.
Count_Git_Remote_Branches

From Bash count the number of remote branches a git repo contains:

git branch -r | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment