Git Repository inside other Git Repository

use “Git Submodules”
see: https://git-scm.com/book/en/v2/Git-Tools-Submodules

Example:
> git submodule add https://url/example.git Target-Folder

Quote:

“Although is a subdirectory in your working directory, Git sees it as a
submodule and doesn’t track its contents when you’re not in that directory. Instead, Git sees it as a particular commit from that repository.” (https://git-scm.com/book/en/v2/Git-Tools-Submodules)

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.