Skip to content

Instantly share code, notes, and snippets.

@sanketsudake
Created April 11, 2024 08:37
Show Gist options
  • Save sanketsudake/d43754f0299fed0071f2f38f204cfc4b to your computer and use it in GitHub Desktop.
Save sanketsudake/d43754f0299fed0071f2f38f204cfc4b to your computer and use it in GitHub Desktop.
Add already cloned repo as submodules
for i in $(find example-sources -type d -depth 1)
do
echo $i
pushd $i
url=$(git remote get-url $(git remote))
echo $url
popd
git submodule add $url ./$i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment