the .gitmodule file have the list of submodule url and path, similar to this
[submodule ".vim/bundle/subRepo"]
path = .vim/bundle/subRepo
url = https://git.com/sub/repo
and in the .git/config of core repo have list of remotes
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]
when
git submodule init
git submodule update
I get the submodules.
how add one time the list of remotes in a submodule ? for not write everytime
git remote add remoteAlias git://...
in each submodule
git clone --recursive
or
git submodule update --init --recursive
if you already cloned.
I begin this command
https://github.com/juanpabloaj/git-remote-init
for save the remotes in a .gitremotes file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With