Skip to content

Instantly share code, notes, and snippets.

@skovy

skovy/git.rb

Created Dec 9, 2020
Embed
What would you like to do?
def current_branch
`git rev-parse --abbrev-ref HEAD`.strip
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment