I have a git repository set up with several submodules, which creates a .gitmodules
file that is a tracked file in the parent repository. However, there are other developers wanting to work on this repository, and check out the submodules. But currently the URLs for the remote submodule repositories contain my username; in the .gitmodules
file it's something like:
[submodule foo]
path = sub/foo
url = https://[email protected]/git/foo.git
Obviously other developers can't fetch from example.com
as myuser
(they don't have my password); how can I have one main repository that multiple developers can pull/push to, and allow them to have individual access to the submodules (setting up a single username they all share on the submodule host server would work, but is not good user management)?