Re: git-branch --print-current
- From
Miklos Vajna <vmiklos@frugalware.org>
- Date
- Jan 4, 2009, 03:38 UTC
- Message-ID
- <20090104033839.GD21154@genesis.frugalware.org>
- In-Reply-To
- <quack.20090103T1818.lth7i5bg6f7@roar.cs.berkeley.edu>
On Sat, Jan 03, 2009 at 06:18:36PM -0800, Karl Chen <quarl@cs.berkeley.edu> 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.)