Re: git branch command is incompatible with bash
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 27, 2015, 21:49 UTC
- Message-ID
- <xmqqh9opgtjz.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <55B69E68.90306@kdbg.org>
Johannes Sixt <j6t@kdbg.org> writes:
> Try > > branchName=$(git rev-parse --abbrev-ref HEAD)
Hmm, interesting.
$ git checkout --orphan notyet
$ git rev-parse --abbrev-ref HEAD
$ git symbolic-ref --short HEAD