Re: git branch --switch?
- From
- Rene Herman <rene.herman@gmail.com>
- Date
- Apr 17, 2007, 14:29 UTC
- Message-ID
- <4624D9E0.7080303@gmail.com>
- In-Reply-To
- <81b0412b0704170721i2b64999aqbd0d7489074454d6@mail.gmail.com>
On 04/17/2007 04:21 PM, Alex Riesen wrote:
> On 4/17/07, Rene Herman <rene.herman@gmail.com> wrote:
>> Is it possible to switch the current branch without checking it out?
[ ... ]
Show 5 quoted lines
> Kind of. It can be done with git-read-tree. I.e.: > > $ git-read-tree --index-output=.git/tmp-index <branch-name> && \ > mv tmp-index .git/index && \ > git update-ref HEAD <branch-name>
Eew. Thank you. Maybe...
Rene.