Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

shell script get branch name

#!/bin/bash
echo $(git symbolic-ref --short HEAD)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #shell #script #branch
ADD COMMENT
Topic
Name
4+3 =