0

I have two existing repositories on GitHub, I need to make them public but at the same time I wanted them to be under a common directory so as to ease navigation between projects.

jyotirmaya ojha
  • 73
  • 1
  • 13

1 Answers1

1

Depending on whether you want to keep the two repos, there's a couple of options.

  • Create a new git repo and add the existing ones with git submodule add some_Url path_in_new_repo. Github lets you navigate to submodules easily. You need to update the 'super' module whenever one of the repos changes, but you retain seperate history.
  • perform a subtree merge. This combines the history of the 2 repos into one.

further reading

renefritze
  • 2,167
  • 14
  • 25