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

∥☆過路亽.° 提交于 2020-01-05 09:21:17

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!