git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Lau <benlau@ust.hk>
To: git@vger.kernel.org
Subject: How to create a new branch based on a tag?
Date: Fri, 21 Oct 2005 22:57:59 +0800	[thread overview]
Message-ID: <435901F7.9020509@ust.hk> (raw)

Hi,

   I would like to create a branch of my own work based on a specific 
kernel version(i.e
v2.6.11). I tried with:

 > git-branch my2.6.11 v2.6.11
error: Object 5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8c is a tree, not a 
commit
fatal: Needed a single revision

  As v2.6.11 is a tree object(tag), git-checkout and git-branch could 
not process it. The
only way I know is using git-read-tree to fetch v2.6.11 content into 
current index and start
a branch based on it. Is there any simpler method?

Thanks!

             reply	other threads:[~2005-10-21  2:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-21 14:57 Ben Lau [this message]
2005-10-21  3:37 ` How to create a new branch based on a tag? Martin Langhoff
2005-10-21 16:15   ` Ben Lau
2005-10-21  3:50 ` Junio C Hamano
2005-10-21 16:23   ` Ben Lau
2005-10-21  5:08     ` Junio C Hamano
2005-10-21 19:14       ` Ben Lau
2005-10-21  8:20         ` Junio C Hamano

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=435901F7.9020509@ust.hk \
    --to=benlau@ust.hk \
    --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).