Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: git-branch --print-current

From: Karl Chen <hidden>
Date: 2016-06-15 22:45:51

quoted
quoted
quoted
quoted
On 2009-01-01 20:26 PST, David Aguilar writes:
    David> You might want to use 'git symbolic-ref' instead.

    David> $ git symbolic-ref HEAD | sed -e 's,refs/heads/,,'
    David> master

Thanks, that is better.

How about an option to git-symbolic-ref that gets rid of the
refs/heads/ ?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help