I just recently come to a dilemma.
I whish to git submodule add to my repo, and the dilemma is this:
1. Should I make a fork of the repo and then add submodule of my own fork?
OR
2. Should I add submodule directly from remote?
What is the most usual scenario and how do other coders decide this?
Btw. I do not plan to modify code in submodules, my only goal is to use the library.
What ever is the usual ( or normal ), there seems to be an issue fetching remote when that remote is from another git provider, for example my repo is on github, and the submodule I which to add is on GitLab, and this probably is the reason for:
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
I don't seem to have this issue with submodules on github, so the question is, what is normal and also how to deal with this issue?
**EDIT:**
OK, I figured out I needed to add a new SSH key to GitLab to be able to clone, however my question remains on whether the remote should by my fork or upstream?