git add remote in submodule

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

  • Integrate TFS git source control and JIRA
  • Pushing a local git repo to another online git repos (like github)
  • Git - revert significant changes
  • Git: How to store 'git stash' Data
  • Failed patch changed my Git Bash prompt, how do I revert it?
  • Is TFS better than GIT for code management?
  • [remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = git@otherRepo.com
    

    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

  • Problems with corrupt git repo
  • “git push heroku master” fails with the error: “Connection to … closed by remote host”
  • How to use Kaleidoscope 2 with Git Tower?
  • Create a new branch on github + git fetch + git push fails
  • How to get back the files removed with `git rm -r -f`?
  • ssh key file unprotected private key file error every time after reboot
  • 2 Solutions collect form web for “git add remote in 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

    Git Baby is a git and github fan, let's start git clone.