Skip to main content

How to make part of an existing GIT repository a submodule

I have this git repository which contains two folders: binary-search and poker. For example, http://github.com/soulnafein/code-katas

I would like to make these folders into submodules and keep their change history.

How can I do that?

soulnafein
  • 1.1k
  • 1
  • 10
  • 20