From: Rene Herman <rene.herman@gmail.com>
To: Alex Riesen <raa.lkml@gmail.com>
Cc: Brian Gernhardt <benji@silverinsanity.com>, git@vger.kernel.org
Subject: Re: git branch --switch?
Date: Tue, 17 Apr 2007 17:44:54 +0200 [thread overview]
Message-ID: <4624EB76.2030700@gmail.com> (raw)
In-Reply-To: <81b0412b0704170811h510ce0afn1b2277b752bdf422@mail.gmail.com>
On 04/17/2007 05:11 PM, Alex Riesen wrote:
> ach, right. Dangerous: it can change the ref HEAD points to. Very sorry!
> Better just:
>
> $ rm .git/HEAD && git symbolic-ref HEAD "refs/heads/<branch-name>"
Thanks.
> In the end, you just have git-checkout minus git-checkout-index. Maybe
> a "git-checkout -n" can be useful. Even though I can't imagine what for.
Thought about that as well, to keep with clone, but giving "checkout" an
option to not checkout seems somewhat odd.
"git branch -s" for "not only create but Set current to it as well" maybe?
Rene.
next prev parent reply other threads:[~2007-04-17 15:47 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 [this message]
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
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=4624EB76.2030700@gmail.com \
--to=rene.herman@gmail.com \
--cc=benji@silverinsanity.com \
--cc=git@vger.kernel.org \
--cc=raa.lkml@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.