Created
January 10, 2022 17:15
-
-
Save andrewlazenka/4e0e35abf1b32ea29ec752891cb60a10 to your computer and use it in GitHub Desktop.
Get the active git branch in a repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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