I've got a Python library of my own in a Git repository. I'm starting a new Python application in a new Git repository, which requires the use of a subdirectory of that library, which I will surely modify.
How do I import a subfolder of the library's repo to the application repo, in a way that the modifications made during the application development can be taken back to the library's repo at the end. During the application development, the library itself will also evolve on its own.
I've seen git subtree
here as an option to include a subfolder of a repo into another one, but I can't foresee how to take changes back to the library repo and merge them with the commits the library itself may have received meanwhile.