hakoerber / git-repo-manager

A git tool to manage worktrees and integrate with GitHub and GitLab
https://hakoerber.github.io/git-repo-manager/
GNU General Public License v3.0
67 stars 9 forks source link

handling nested repositories #48

Closed pythys closed 1 year ago

pythys commented 1 year ago

So I have some projects that simply hold git repositories inside other git repositories (usually in .gitignore folders). And I want to keep that directory structure. Is this possible without introducing submodules?

pythys commented 1 year ago

OK answering myself, things are a little more clear to me now

grm repos find local this command will not find nested repos however you can do it manually and it will work. Now the problem is order sequence, but I suppose this is easily solved by making the root repos clone before the sub-repos. Example below

- root: ~/projects
  repos:
  - name: mainproject
    worktree_setup: false
    remotes:
    - name: origin
      url: https://github.com/whatever/whatever.git
      type: https
  - name: mainproject/subproject
    worktree_setup: false
    remotes:
    - name: origin
      url: https://github.com/whatever/whateverelse.git
      type: https