In the root folder of your workspace run this find command to pull changes from remote repo (on the last branch):
find . -name .git -type d -print -execdir git pull \;
Create your favourite alias for example, for sync changes with git pull
:
alias git-sync='find . -name .git -type d -print -execdir git pull \;'
find . -name .git -type d -print -execdir grep -Ri url {}/config > $(pwd)/repo-urls.out \;
then substitute all "url =" pattern with "git clone" command :
sed -i 's/url =/git clone/g' repo-urls.out
Output Example after substitution :
cat repo-urls.out
./project-name/.git
git clone https://companydomain@gitlab.com/organization/project-name/_git/project-name