shoestrap/assets/default/bin/git-branch-name
2014-08-08 13:53:21 -07:00

4 lines
99 B
Bash
Executable File

#!/bin/bash
git rev-parse HEAD >&/dev/null || exit 1
git branch --no-color | grep '^*' | cut -c 3-