Created
January 11, 2017 13:04
-
-
Save SathyaBhat/04bccf6b5255b372adf179f3f31cf890 to your computer and use it in GitHub Desktop.
Get a list of all branches from a repository
This file contains 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
#! /bin/bash | |
#Replace {GIT_URL} with your repo | |
git ls-remote --heads {GIT_URL} | aws -F" " '{print $NF}' | cut -c12- - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment