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

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

Such as putting

  • Git integration to bugtracking: can it track merges?
  • Git change history of feature-branch into a new branch?
  • How should I version control (sort of) unrelated scripts in the same path?
  • How to best configure a central repository/multiple central repositories for Mercurial?
  • Does Git work in Windows?
  • Benefits of using git branches vs. multiple repositories
  • c:\ror
    c:\software projects\ruby
    c:\js test
    d:\peter_website
    

    all in 1 Git or Mercurial repository called code ?

  • origin/HEAD points to wrong branch
  • Github Pullrequest shows changes not yet included
  • Why do I need to do `--set-upstream` all the time?
  • How do I push a Team Services git repository after build to an external git repository?
  • Forking a repository that got updated in GitHub
  • git seems not to want to push a folder?
  • One Solution collect form web for “On Windows, can we put different folders in 1 Git or Mercurial (hg) repository?”

    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.

    Git Baby is a git and github fan, let's start git clone.