From: Johannes Sixt Date: Mon, 17 Dec 2012 08:20:36 GMT Subject: Re: [PATCH 1/2] Documentation/git-checkout.txt: clarify usage Message-ID: <50CED5D4.5040705@viscovery.net> In-Reply-To: <7vhanlnnz7.fsf@alter.siamese.dyndns.org> Am 12/17/2012 8:21, schrieb Junio C Hamano: > Chris Rorvick writes: >> 'git checkout' []:: Is really optional in this form? BTW, what does plain 'git checkout' do? Just report ahead/behind information? >> + >> + Update the index, working tree, and HEAD to reflect the >> + specified branch. ... >> +'git checkout' [--detach] []:: The title here is better spelled as two lines: 'git checkout' :: 'git checkout' --detach :: I don't think that or should be indicated as optional here. >> + >> + Update the index and working tree to reflect the specified >> + commit and set HEAD to point directly to (see >> + "DETACHED HEAD" section.) Passing `--detach` forces this >> + behavior even if is a branch. > > Prepare to work on building new history on top of , > by detaching HEAD at the commit and ...(likewise)... -- Hannes