问题
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
?
回答1:
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.
来源:https://stackoverflow.com/questions/3027802/on-windows-can-we-put-different-folders-in-1-git-or-mercurial-hg-repository