Skip to main content

git/gcb

1#!/usr/bin/env bash
2# Get the name of the current branch in Git
3# See https://stackoverflow.com/a/12142066/1558022
5set -o errexit
6set -o nounset
8git rev-parse --abbrev-ref HEAD