Re: Checking out a branch in another directory
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Sep 3, 2010, 22:23 UTC
- Message-ID
- <20100903222351.GA26237@burratino>
- In-Reply-To
- <800379.5243.qm@web31805.mail.mud.yahoo.com>
Hi Luben,
Luben Tuikov wrote:
> 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.
You might like contrib/workdir/git-new-workdir (shipped in /usr/share/doc/git by most distros).
An occasional topic has been how to integrate this functionality into "git clone". See [1], for example.
Good luck, Jonathan
[1] http://thread.gmane.org/gmane.comp.version-control.git/150559/focus=151247