Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created October 7, 2021 01:01
Show Gist options
  • Save KyMidd/a57b109bfbc5df0cbfc31b8d0a6db508 to your computer and use it in GitHub Desktop.
Save KyMidd/a57b109bfbc5df0cbfc31b8d0a6db508 to your computer and use it in GitHub Desktop.
# Find current branch name
CURRENT_BRANCH=$(git branch | grep ^\* | cut -d "*" -f 2 | cut -d " " -f 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment