Skip to content

Instantly share code, notes, and snippets.

@andrewlazenka
Created January 10, 2022 17:15
Show Gist options
  • Save andrewlazenka/4e0e35abf1b32ea29ec752891cb60a10 to your computer and use it in GitHub Desktop.
Save andrewlazenka/4e0e35abf1b32ea29ec752891cb60a10 to your computer and use it in GitHub Desktop.
Get the active git branch in a repo
# https://stackoverflow.com/a/12142066
git rev-parse --abbrev-ref HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment