On Tue, Jul 10, 2007 at 14:10:01 -0400, Brian Gernhardt wrote: > Indeed, in master, git outputs a hint to that when you checkout the remote > branch. > > $ git checkout origin/master > Note: moving to "origin/master" which isn't a local branch > If you want to create a new branch from this checkout, you may do so > (now or later) by using -b with the checkout command again. Example: > git checkout -b <new_branch_name> > HEAD is now at f4855d4... 1 The problem of this warning is, that it does not actually say anything about detached and that potential commit won't update the ref being checked out. > Perhaps git-commit should also also output a warning? "Commit made on > detached HEAD. Use "git branch <new_branch_name>" to save your commit"? > That's bad wording, but the idea is there. -- Jan 'Bulb' Hudec <bulb@xxxxxx>
Attachment:
signature.asc
Description: Digital signature