Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash script to get all git branches from remote

git for-each-ref --shell 
  --format='git log --oneline %(refname) ^origin/master' 
  refs/heads/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #script #git #branches #remote
ADD COMMENT
Topic
Name
8+8 =