I have one git repository of a library and another git repository of a project:
library/
project/
I need to copy the library to a folder inside the project:
project/ref/library/
Inside this project I will make modifications to the library specific to that project, thus it would not be viable to use submodules. I also need to preserve the history of this library.
As a bonus, I would like also to know how could I merge/rebase future developments of the library into my fork of the library inside the project.