From: Jonathan Nieder Date: Mon, 07 Feb 2011 22:00:30 GMT Subject: Re: [1.8.0] git checkout refs/heads/foo checks out branch foo Message-ID: <20110207220030.GA19357@elie> In-Reply-To: Sverre Rabbelier wrote: > Now _that_ is an excellent usability improvement, assuming we want to > encourage detaching HEAD... do we? Yes. -- 8< Subject: commit: document --detach synonym for "git checkout foo^{commit}" For example, one might use this when making a temporary merge to test that two topics work well together. This patch just documents the option. It is not meant for application without an implementation and tests for the option. Suggested-by: Jeff King Signed-off-by: Jonathan Nieder --- Documentation/git-checkout.txt | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt index 880763d..698ae6c 100644 --- a/Documentation/git-checkout.txt +++ b/Documentation/git-checkout.txt @@ -9,6 +9,7 @@ SYNOPSIS -------- [verse] 'git checkout' [-q] [-f] [-m] [] +'git checkout' [-q] [-f] [-n] [--detach] [] 'git checkout' [-q] [-f] [-m] [[-b|-B|--orphan] ] [] 'git checkout' [-f|--ours|--theirs|-m|--conflict=