From: Miklos Vajna Date: Sun, 04 Jan 2009 03:38:39 GMT Subject: Re: git-branch --print-current Message-ID: <20090104033839.GD21154@genesis.frugalware.org> In-Reply-To: On Sat, Jan 03, 2009 at 06:18:36PM -0800, Karl Chen wrote: > How about an option to git-symbolic-ref that gets rid of the > refs/heads/ ? Make an alias? git config alias.cb '!sh -c "git symbolic-ref HEAD|sed s,refs/heads/,,"' $ git cb master (Where cb can stand for 'current branch', for example.)