git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Luben Tuikov
Message 2 of 2 in “Checking out a branch in another directory”
  1. Luben TuikovSep 3, 2010
  2. Jonathan NiederSep 3, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.