From: "Peter Harris" <git@peter.is-a-geek.org>
To: "David Copeland" <davetron5000@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Can someone confirm what the contents of refs/heads/master means?
Date: Mon, 8 Dec 2008 14:55:27 -0500 [thread overview]
Message-ID: <eaa105840812081155j1e402226i896a7ad3061966e1@mail.gmail.com> (raw)
In-Reply-To: <f95d47890812081142k575264fctd77254ed3386a069@mail.gmail.com>
On Mon, Dec 8, 2008 at 2:42 PM, David Copeland wrote:
> Thanks for the info :)
>
> The reason I edited by hand is when I was on trunk (e.g. git checkout
> trunk), I did a git svn dcommit and it worked, but said "you aren't on
> a branch", so I was concerned I might be in some weird state (i.e. if
> trunk isn't a branch, can I make a branch off of it?)
Trunk is a "remote branch", so you can't check it out. If you try, you
get what is called a "detached HEAD".
http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#detached-head
And, yes, you can make a local branch off of a remote branch.
Peter Harris
next prev parent reply other threads:[~2008-12-08 19:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-08 19:23 Can someone confirm what the contents of refs/heads/master means? davetron5000
2008-12-08 19:35 ` Peter Harris
2008-12-08 19:42 ` David Copeland
2008-12-08 19:55 ` Peter Harris [this message]
2008-12-08 21:26 ` Björn Steinbrink
2008-12-08 22:21 ` David Copeland
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=eaa105840812081155j1e402226i896a7ad3061966e1@mail.gmail.com \
--to=git@peter.is-a-geek.org \
--cc=davetron5000@gmail.com \
--cc=git@vger.kernel.org \
/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).