git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Zoë Blade" <zoe@bytenoise.co.uk>
To: Alexander <samarinav1992@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Problem with architecture git.
Date: Fri, 17 Jul 2015 18:10:00 +0100	[thread overview]
Message-ID: <7C98A500-2464-4409-B3EA-8E60325674EA@bytenoise.co.uk> (raw)
In-Reply-To: <loom.20150717T170829-906@post.gmane.org>

On 17 Jul 2015, at 16:12, Alexander <samarinav1992@gmail.com> wrote:

> 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. 

You'll probably want something like this in your remote (presumably bare) repo's post receive hook:

#!/bin/sh

GIT_WORK_TREE=/var/www/html/www.foo.com git checkout master -f
GIT_WORK_TREE=/var/www/html/www.foo.com git clean -f
GIT_WORK_TREE=/var/www/html/dev.foo.com git checkout dev -f
GIT_WORK_TREE=/var/www/html/dev.foo.com git clean -f

It's one-way, from Git to the directories only, but should do the trick.

Hope that helps,
Zoë.

  reply	other threads:[~2015-07-17 17:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-17 15:12 Problem with architecture git Alexander
2015-07-17 17:10 ` Zoë Blade [this message]
2015-07-17 18:06 ` Keller, Jacob E

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=7C98A500-2464-4409-B3EA-8E60325674EA@bytenoise.co.uk \
    --to=zoe@bytenoise.co.uk \
    --cc=git@vger.kernel.org \
    --cc=samarinav1992@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).