I have been pushing my entire project to a remote, but now I need to push a subdirectory within my project to a different remote. How can I do this?
Asked
Active
Viewed 32 times
1 Answers
1
The two options are:
- git submodules (to track the exact reference of a repo used by a subdir, using a special entry in the index of the main repo: a gitlink)
- git subtree (to manage only one repo, even if a subdir can be pushed to another repo)