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

Re: Problem with architecture git.

From
Keller, Jacob E <jacob.e.keller@intel.com>
Date
Jul 17, 2015, 18:06 UTC
Message-ID
<1437156370.4883.14.camel@intel.com>
In-Reply-To
<loom.20150717T170829-906@post.gmane.org>
On Fri, 2015-07-17 at 15:12 +0000, Alexander wrote:
Show 8 quoted lines
> Hello,
> 
> I have problem with architecure of my project, help me to resolve 
> problem 
> . I want to do in my remote repo two branches with two different 
> working 
> folders (master , dev ) to check it . How can I do it ?
> Thank you. 

Sounds like you want the git worktree functionality currently being baked.

git clone <remote> cd <repo> git checkout master git worktree add <path/to/dev> dev

This allows you to have both master checked out at the location path/to/dev and the master checked out where repo is stored. Quite valuable

I think this solves what you're looking for? I don't know what version git-worktree is supported by..

Regards, Jake

Previous: Zoë Blade
Message 3 of 3 in “Problem with architecture git.”
  1. AlexanderJul 17, 2015
  2. Zoë BladeJul 17, 2015
  3. Keller, Jacob EJul 17, 2015

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.