From: "J. Bakshi" <joydeep@infoservices.in>
To: kusmabite@gmail.com
Cc: git@vger.kernel.org
Subject: Re: Coming from SVN world - need help
Date: Thu, 14 Jul 2011 11:03:18 +0530 [thread overview]
Message-ID: <20110714110318.7726251c@shiva.selfip.org> (raw)
In-Reply-To: <CABPQNSa1PO6je+4sXMRWLLwLG9sUNTD1a+SMJj=wdPF+_dUPHA@mail.gmail.com>
On Wed, 13 Jul 2011 15:17:36 +0200
Erik Faye-Lund <kusmabite@gmail.com> wrote:
> On Wed, Jul 13, 2011 at 3:00 PM, J. Bakshi <joydeep@infoservices.in> wrote:
> > And now the issues when I am trying to do the same with git
> >
> > [1] git init ${git_path}/<repo>.git >>> ok , it is working
>
> You probably want to add the "--bare"-flag if this is the repo that
> will be published.
>
Actually the practical scenario is different than just a bare repo. The repos should be connected with its working copy located at htdocs directory. So whenever someone commit anything in git the corresponding working directory should be updated accordingly with a post-commit hook. I have done the same in svn but don't know how git will help to achieve this ? The main part, How can I simply map the folder in htdocs with it's master in git repo ? As "git clone" actually creates the parent folder. In svn it was easy with
````````````
cd mydir
mydir $> svn --username ${admin_svn} --password ${admin_svn_pass} co file:///${svn_path}/${name_site}/trunk ./
``````````````
How can I achieve the same in git ?
next prev parent reply other threads:[~2011-07-14 5:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-13 13:00 Coming from SVN world - need help J. Bakshi
2011-07-13 13:17 ` Erik Faye-Lund
2011-07-14 5:33 ` J. Bakshi [this message]
2011-07-14 6:08 ` Ramkumar Ramachandra
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110714110318.7726251c@shiva.selfip.org \
--to=joydeep@infoservices.in \
--cc=git@vger.kernel.org \
--cc=kusmabite@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox