shoestrap/assets/default/bin/git-branch-name

4 lines
99 B
Plaintext
Raw Permalink Normal View History

2013-08-08 03:23:13 +00:00
#!/bin/bash
git rev-parse HEAD >&/dev/null || exit 1
git branch --no-color | grep '^*' | cut -c 3-