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

RE: repository in different directories

From
HLHolding, Lawrence <lawrence.holding@cubic.com>
Date
Jul 12, 2011, 19:29 UTC
Message-ID
<A5E8E180685CEF45AB9E737A0107998009CB9B@cdnz-ex1.corp.cubic.cub>
In-Reply-To
<CABU6SG4=UiuM7Q1RkXxR1oJKP72Sk69Awq09+64VOra3ds5hmA@mail.gmail.com>
On your machine and the server make hard links from the folders in the repository to the destination folders, that way when you check out the latest version then both locations are updated.

So have /home/carlo/dev.repo/.git /home/carlo/dev.repo/public_html/ linked to /home/carlo/public_html/ /home/carlo/dev.repo/applications/ linked to /home/carlo/ci/application

you can then work in the same place as usual, but do your commits from the dev.repo folder.
My $0.02 solution.
-----Original Message-----
From: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On Behalf Of Carlo Trimarchi
Sent: Tuesday, 12 July 2011 02:07
To: Allen Fogleson
Cc: git@vger.kernel.org
Subject: Re: repository in different directories
On 11 July 2011 16:01, Allen Fogleson <afogleson@gmail.com> wrote:
> Why not just make /home/carlo the repository, it has all the right folder
> structure, then from the server you can pull, or you can git archive when
> ready to release and unarchive on the server

because I'm working on different applications and I need a repository for each one of them

Steve Muadib
>Ah, and for wrong: how about using one repository and setting up
>a commit hook to move files to final places?

the commit hook should stay in the local or the remote machine? -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Previous: Carlo Trimarchi
Message 4 of 4 in “repository in different directories”
  1. Carlo TrimarchiJul 11, 2011
  2. Steve MuadibJul 11, 2011
  3. Carlo TrimarchiJul 11, 2011
  4. Holding, LawrenceJul 12, 2011

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.