Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 10 lines (7 sloc) 248 Bytes
# Get the name of the active git branch. If the cwd is not a git repository,
# output nothing.
# This is useful if you want to display the current branch in your shell
# prompt.
git branch 2>/dev/null | grep '^\*' | sed 's/^\* //'
Jump to Line
Something went wrong with that request. Please try again.