From: Jan Hudec <bulb@ucw.cz>
To: Brian Gernhardt <benji@silverinsanity.com>
Cc: Jeff King <peff@peff.net>, git discussion list <git@vger.kernel.org>
Subject: Re: pushing changes to a remote branch
Date: Wed, 11 Jul 2007 21:31:52 +0200 [thread overview]
Message-ID: <20070711193152.GC3069@efreet.light.src> (raw)
In-Reply-To: <844FC382-DFB3-4762-93C2-6512612136AC@silverinsanity.com>
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
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@ucw.cz>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-07-11 19:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-10 14:36 pushing changes to a remote branch martin f krafft
2007-07-10 17:34 ` Jeff King
2007-07-10 18:10 ` Brian Gernhardt
2007-07-10 22:04 ` Jeff King
2007-07-11 3:44 ` Sean Kelley
2007-07-11 19:34 ` Jan Hudec
2007-07-11 19:31 ` Jan Hudec [this message]
2007-07-11 21:26 ` Junio C Hamano
2007-07-14 8:38 ` Jan Hudec
2007-07-11 19:29 ` Jan Hudec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070711193152.GC3069@efreet.light.src \
--to=bulb@ucw.cz \
--cc=benji@silverinsanity.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).