Created
January 20, 2012 20:02
-
-
Save drewdeponte/1649290 to your computer and use it in GitHub Desktop.
git-current-branch
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
#!/bin/sh | |
# Print the current Git branch. | |
# | |
# AUTHOR: | |
# Geoffrey Grosenbach http://peepcode.com | |
git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment