Re: git branch --switch?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/17/2007 04:21 PM, Alex Riesen wrote:

On 4/17/07, Rene Herman <rene.herman@xxxxxxxxx> wrote:

Is it possible to switch the current branch without checking it out?

[ ... ]

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.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]