Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 10 lines (7 sloc) 0.248 kb
#!/bin/bash
# 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.