0

Let say I have code for application and two libraries in my repository.

$ tree -d .    
.
├── app
├── libA
└── libB

At some point the libA is growing complex. I would like to make it a new separated repository for easy management. And to be able to use with another application.

Is there any way to extracted only files in libA along with its history to created new repository without any history of other files outside?

wizzup
  • 2,361
  • 20
  • 34

1 Answers1

1

You could use --subdirectory-filter

How ever Looks like a duplicate of How to move files from one git repo to another (not a clone), preserving history.

Karthik
  • 929
  • 2
  • 12
  • 24