I would like to include a secondary remote in a git repository so that when a user clones the repo, it automatically adds the second remote. So it could have the following after cloning:
> git remote -v
origin https://something.gitlab.com/user/test.git
remote2 ssh://server.location.com:/path/to/source/.git
Is there a mechanism in git to do this?
Note: git annex has an autoenable option that does this for it's special remotes. This is where I got the idea. Ref: https://git-annex.branchable.com/git-annex-init/