From: Johannes Sixt Date: Tue, 08 May 2012 11:34:27 GMT Subject: Re: git checkout creates strange '(null)'-branch Message-ID: <4FA904C3.7070208@viscovery.net> In-Reply-To: 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.