From: Colin Patrick Mccabe Date: Thu, 23 Aug 2012 17:53:41 +0000 (-0700) Subject: git-cur-branch: script to print cur branch X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09be26873dcec51f9c490c671ef015346ebf3818;p=cmccabe-bin git-cur-branch: script to print cur branch Signed-off-by: Colin McCabe --- diff --git a/git-cur-branch.sh b/git-cur-branch.sh new file mode 100755 index 0000000..6fa1ebc --- /dev/null +++ b/git-cur-branch.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +git branch | awk '/\*/ { print $2; }'