[petsc-dev] get rid of https://bitbucket.org/petsc/petsc-dev NOW

Jed Brown jed at jedbrown.org
Thu Sep 4 21:11:21 CDT 2014


Satish Balay <balay at mcs.anl.gov> writes:
> How do I get a branch name? I would assume 'git branch' would give
> this info - but it does not [it gives a big list]
>
> http://stackoverflow.com/questions/6245570/how-to-get-current-branch-name-in-git
> has too many options - most are not suitable..
>
> git branch | sed -n '/\* /s///p'

What's wrong with "git rev-parse --abbrev-ref HEAD" or "git symbolic-ref HEAD"?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140904/abc16504/attachment.sig>


More information about the petsc-dev mailing list