Oskar Stolc's Howto Collection

Articles in the GIT category

GIT - Extract a Subdirectory into a Separate GIT Repository

This howto shows how to extract a subdirectory into a separate GIT repository.

Assumptions

  • Your main GIT repo is /var/lib/git/giantproject.git
  • You want to extract /var/lib/git/giantproject.git/path/to/subproject into a separate /var/lib/git/subproject.git bare repo
  • You want to remove …