git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Holding, Lawrence" <Lawrence.Holding@cubic.com>
To: "Carlo Trimarchi" <mr.spoon21@gmail.com>
Cc: <git@vger.kernel.org>
Subject: RE: repository in different directories
Date: Wed, 13 Jul 2011 07:29:04 +1200	[thread overview]
Message-ID: <A5E8E180685CEF45AB9E737A0107998009CB9B@cdnz-ex1.corp.cubic.cub> (raw)
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

      reply	other threads:[~2011-07-12 19:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-11 12:44 repository in different directories Carlo Trimarchi
2011-07-11 13:44 ` Steve Muadib
     [not found] ` <CACwv2A=d44+txUGGDxJRFHVps-eT5g_mWyA-WaKTXyyUFgix7g@mail.gmail.com>
2011-07-11 14:07   ` Carlo Trimarchi
2011-07-12 19:29     ` Holding, Lawrence [this message]

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A5E8E180685CEF45AB9E737A0107998009CB9B@cdnz-ex1.corp.cubic.cub \
    --to=lawrence.holding@cubic.com \
    --cc=git@vger.kernel.org \
    --cc=mr.spoon21@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).