#!/usr/bin/env bash
## Prints the name of the current branch with no odd characters or formatting, mainly useful in automation scripts.
## Source: git-extra-commands

#
# Copy the current branch name to stdout for use in automation

branch=$(git rev-parse --abbrev-ref HEAD)

echo "$branch" | tr -d '\n' | tr -d ' '
