git get current branch shell script code example Example: how to get current git branch git branch --show-current