views:

61

answers:

1

On Windows, can we put different folders in 1 Git or Mercurial (hg) repository?

Such as putting

c:\ror
c:\software projects\ruby
c:\js test
d:\peter_website

all in 1 Git or Mercurial repository called code ?

+4  A: 

No, this is not directly possible. What you could do is making seperate repositories for each dir and then combine them as submodules in another repository.

I would advise to keep a repository about one project only. If these three dirs are for the same project, you might considering using a better directory structure for them.

Peter Smit