From: J. Bakshi Date: Thu, 14 Jul 2011 05:33:18 GMT Subject: Re: Coming from SVN world - need help Message-ID: <20110714110318.7726251c@shiva.selfip.org> In-Reply-To: On Wed, 13 Jul 2011 15:17:36 +0200 Erik Faye-Lund wrote: > On Wed, Jul 13, 2011 at 3:00 PM, J. Bakshi wrote: > > And now the issues when I am trying to do the same with git > > > > [1] git init ${git_path}/.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 ?