From: Rene Herman <rene.herman@gmail.com>
To: Lars Hjemli <hjemli@gmail.com>
Cc: Brian Gernhardt <benji@silverinsanity.com>, git@vger.kernel.org
Subject: Re: git branch --switch?
Date: Tue, 17 Apr 2007 18:10:55 +0200 [thread overview]
Message-ID: <4624F18F.6070906@gmail.com> (raw)
In-Reply-To: <8c5c35580704170855ke426d86vac6e9b3b67fea5ea@mail.gmail.com>
On 04/17/2007 05:55 PM, Lars Hjemli wrote:
> On 4/17/07, Rene Herman <rene.herman@gmail.com> wrote:
>> git clone -l -s -n <a local linux repo> local
>> git checkout -b v20 v2.6.20
>> git branch a
>> git branch b
>> git branch c
>>
>> Step 1, 3, 4 and 5 of this are nearly instantaneous but 2 isn't
>
> I might have misunderstood your goal, but have you tried
>
> git clone -l -s -n <a local linux repo> local
> git branch a v2.6.20
> git branch b a
> git branch c a
>
> Now a, b and c all point at v2.6.20, while HEAD points as master.
Well, yes, they do, and I could also do
git branch b v2.6.20
git branch c v2.6.20
directly then (right?) but I do want that "v20" branch in the middle. The
cloned repo is a linus repo, and that v20 is where I'll be pulling 2.6.20.y
updates into; a merge branch will then merge v20, a, b and c into what I
will be compiling.
As said, given that I need to checkout things anyway to do something with
them it'a all not essential but as a newbie, I just thought that a "branch
--and-set-as-current new_branch" made sense. My sense of sense may be crap;
I've largely avoided dealing with souce code management, regarding CVS and
SVN as unfortunate facts of life to work around and forget, mostly.
Rene.
next prev parent reply other threads:[~2007-04-17 16:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-17 13:36 git branch --switch? Rene Herman
2007-04-17 14:21 ` Alex Riesen
2007-04-17 14:29 ` Rene Herman
2007-04-17 14:46 ` Brian Gernhardt
2007-04-17 15:11 ` Alex Riesen
2007-04-17 15:44 ` Rene Herman
2007-04-17 14:31 ` Brian Gernhardt
2007-04-17 15:41 ` Rene Herman
2007-04-17 15:47 ` Rene Herman
2007-04-17 15:55 ` Lars Hjemli
2007-04-17 16:10 ` Rene Herman [this message]
2007-04-17 16:50 ` Randal L. Schwartz
2007-04-17 17:03 ` Rene Herman
2007-04-17 17:00 ` Lars Hjemli
2007-04-17 17:27 ` Rene Herman
2007-04-17 16:24 ` Rene Herman
2007-04-17 16:44 ` Linus Torvalds
2007-04-17 16:55 ` Rene Herman
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=4624F18F.6070906@gmail.com \
--to=rene.herman@gmail.com \
--cc=benji@silverinsanity.com \
--cc=git@vger.kernel.org \
--cc=hjemli@gmail.com \
/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).