Re: git checkout creates strange '(null)'-branch
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- May 8, 2012, 11:34 UTC
- Message-ID
- <4FA904C3.7070208@viscovery.net>
- In-Reply-To
- <CABPQNSZbgZsQBReSqOskNQ4oZokHSibVr=yHdn6oSFjtdRvVVA@mail.gmail.com>
Am 5/8/2012 13:24, schrieb Erik Faye-Lund:
> + git show-ref | !grep "(null)"
...
> Now, doing this doesn't make my test above pass,
It is unlikely to pass if you used this test script literally, because
$ !grep !grep: command not found
"!" is not an operator in a shell script. Insert a space.