1
0
mirror of https://github.com/ViViDboarder/shoestrap.git synced 2025-01-07 05:37:40 +00:00
shoestrap/assets/default/bin/git-branch-name

5 lines
125 B
Bash
Executable File

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