From: Junio C Hamano Date: Wed, 15 Feb 2006 00:34:31 GMT Subject: Re: several quick questions Message-ID: <7vpslppii0.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <43F270F5.7070804@op5.se> Andreas Ericsson writes: > Heh. You're right. :) Didn't grok that from the man-page. I'm so used > to seeing everywhere that when it says " can be > any object that refers to a commit" I get confused. You are right; the documentation is wrong. It says 'git-checkout' [-f] [-b ] [-m] [] [...] It should have said something like: git-checkout [ -f | -m ] or git-checkout [-b ] or git-checkout [ | -- ] ... The first form is to switch to a branch (with flag to say what to do when conflict can lose local modification); the second form is to create a new branch out of comittish and switch to it; and the third is not switching branches but just checking out named paths out of index or arbitrary comittish (I think any ent should do but I have not verified it).