I'm recently put a repository into bitbucket. And this repository has some submodules
I'm working on a Initialization script. I would like to clone the main directory and them pull all subdirectories.
git clone https://bitbucket.org/#####/main.git elastic --recurse-submodules
this prompts me for the user and password.
Username for 'https://bitbucket.org': myuser
Password for 'https://[email protected]':
and them it asks me again for every submodule
Username for 'https://bitbucket.org':
...
My .gitmodules file is like:
[submodule "api"]
path = app/api/
url = [email protected]/###/api.git
branch = master
[submodule "front"]
path = app/front
url = [email protected]/###/front.git
branch = master
[submodule "app/config"]
path = app/config
url = [email protected]/###/config.git
branch = master
... some few more repositories
How can I clone the main repository and them use the same credentials to all childs repositories?
I'm using AWS AMI Linux.