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:

  1. is possible git, because want avoid having .git folder in c:\inetpub\wwwroot\ (we can have similar configuration different project, , i'm pretty sure 2 working trees can't share same .git folder)?
  2. 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 setting git_dir environment variable. can absolute path or relative path current working directory.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -