Git working tree in IIS's wwwroot -
we have visual studio 2003 solution containing multiple web-applications need located in c:\inetpub\wwwroot\
.
i know can create repository in svn can contain applications, , each physical path can connected different location in same repository. ex:
c:\inetpub\wwwroot\app1\
>svn-repo:/apps/app1
c:\inetpub\wwwroot\app2\
>svn-repo:/apps/app2
i need create repository in git, questions are:
- is possible git, because want avoid having
.git
folder inc:\inetpub\wwwroot\
(we can have similar configuration different project, , i'm pretty sure 2 working trees can't share same.git
folder)? - does have idea on how organize repository in git?
because sub-directories of
wwwroot
separate (visual studio) projects, part of single (visual studio) solution treated single product.
, product has version, makes sense have of in single repository. suggest?
even if submodules in theory, since don't want .git
in wwwroot
, simplest solution remains:
- 1 git repo in
wwwroot
both apps in it, - but actual
.git
located elsewhere, ,git_dir
environment variable set reference external.git
directory.
--git-dir=
set path repository.
can controlled settinggit_dir
environment variable. can absolute path or relative path current working directory.
Comments
Post a Comment