From: Luben Tuikov <ltuikov@yahoo.com>
To: git@vger.kernel.org
Subject: Checking out a branch in another directory
Date: Fri, 3 Sep 2010 15:10:52 -0700 (PDT) [thread overview]
Message-ID: <800379.5243.qm@web31805.mail.mud.yahoo.com> (raw)
I'd like to checkout a branch and work on it and so on, but *in another directory*. I wasn't able to accomplish this with git clone, as I can see that refs/heads were NOT shared as also indicated by .git/config, local and/or shared.
Is there official tools to do this in master?
I basically want to eliminate having to do git-checkout <branch> and instead simply do a cd ../<branch>, but really have just a single history.
For the last 4 years, I've been using a home-brewed git-mkdir-of-branch.sh from a local branch, which basically creates a bunch of symlinks and then runs git-read-tree HEAD; git-checkout-index -u -q -f -a.
Luben
next reply other threads:[~2010-09-03 22:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-03 22:10 Luben Tuikov [this message]
2010-09-03 22:23 ` Checking out a branch in another directory Jonathan Nieder
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=800379.5243.qm@web31805.mail.mud.yahoo.com \
--to=ltuikov@yahoo.com \
--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 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.