Last active
October 13, 2024 17:11
-
-
Save Konard/6328e03975dbab2afb3f6f6766d1870b to your computer and use it in GitHub Desktop.
Clone all LinksPlatform's repositories.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone --recurse-submodules https://github.com/linksplatform/BareJS | |
git clone --recurse-submodules https://github.com/linksplatform/BareNET | |
git clone --recurse-submodules https://github.com/linksplatform/Bot | |
git clone --recurse-submodules https://github.com/linksplatform/ccc | |
git clone --recurse-submodules https://github.com/linksplatform/Collections | |
git clone --recurse-submodules https://github.com/linksplatform/Collections.Methods | |
git clone --recurse-submodules https://github.com/linksplatform/Comparers | |
git clone --recurse-submodules https://github.com/linksplatform/Comparisons.PostgreSQLVSDoublets | |
git clone --recurse-submodules https://github.com/linksplatform/Comparisons.RedisVSDoublets | |
git clone --recurse-submodules https://github.com/linksplatform/Comparisons.SQLiteVSDoublets | |
git clone --recurse-submodules https://github.com/linksplatform/conan-center-index | |
git clone --recurse-submodules https://github.com/linksplatform/Converters | |
git clone --recurse-submodules https://github.com/linksplatform/Crawler | |
git clone --recurse-submodules https://github.com/linksplatform/cs2py | |
git clone --recurse-submodules https://github.com/linksplatform/CSharpToCppTranslator | |
git clone --recurse-submodules https://github.com/linksplatform/CSharpToCppTranslatorTestSolution | |
git clone --recurse-submodules https://github.com/linksplatform/Data | |
git clone --recurse-submodules https://github.com/linksplatform/Data.Doublets | |
git clone --recurse-submodules https://github.com/linksplatform/Data.Doublets.Gql | |
git clone --recurse-submodules https://github.com/linksplatform/Data.Doublets.Json | |
git clone --recurse-submodules https://github.com/linksplatform/Data.Doublets.Lino | |
git clone --recurse-submodules https://github.com/linksplatform/Data.Doublets.Sequences | |
git clone --recurse-submodules https://github.com/linksplatform/Data.Doublets.Sql | |
git clone --recurse-submodules https://github.com/linksplatform/Data.Doublets.Xml | |
git clone --recurse-submodules https://github.com/linksplatform/Data.Sequences | |
git clone --recurse-submodules https://github.com/linksplatform/Data.Triplets | |
git clone --recurse-submodules https://github.com/linksplatform/Data.Triplets.Kernel | |
git clone --recurse-submodules https://github.com/linksplatform/Delegates | |
git clone --recurse-submodules https://github.com/linksplatform/Diagnostics | |
git clone --recurse-submodules https://github.com/linksplatform/Disposables | |
git clone --recurse-submodules https://github.com/linksplatform/Documentation | |
git clone --recurse-submodules https://github.com/linksplatform/Equality | |
git clone --recurse-submodules https://github.com/linksplatform/Examples.Doublets.CRUD.DotNet | |
git clone --recurse-submodules https://github.com/linksplatform/Exceptions | |
git clone --recurse-submodules https://github.com/linksplatform/Files | |
git clone --recurse-submodules https://github.com/linksplatform/Hardware.Cpu | |
git clone --recurse-submodules https://github.com/linksplatform/Hashing | |
git clone --recurse-submodules https://github.com/linksplatform/Helpers | |
git clone --recurse-submodules https://github.com/linksplatform/IdClient | |
git clone --recurse-submodules https://github.com/linksplatform/IdDistributorServer | |
git clone --recurse-submodules https://github.com/linksplatform/Incrementers | |
git clone --recurse-submodules https://github.com/linksplatform/InfiniteDepthTreeWebUIPrototype | |
git clone --recurse-submodules https://github.com/linksplatform/Interfaces | |
git clone --recurse-submodules https://github.com/linksplatform/IO | |
git clone --recurse-submodules https://github.com/linksplatform/java2cpp | |
git clone --recurse-submodules https://github.com/konard/LinksPlatform | |
git clone --recurse-submodules https://github.com/linksplatform/linksplatform.github.io | |
git clone --recurse-submodules https://github.com/linksplatform/Memory | |
git clone --recurse-submodules https://github.com/linksplatform/Numbers | |
git clone --recurse-submodules https://github.com/linksplatform/Protocols | |
git clone --recurse-submodules https://github.com/linksplatform/Protocols.Lino | |
git clone --recurse-submodules https://github.com/linksplatform/Random | |
git clone --recurse-submodules https://github.com/linksplatform/Ranges | |
git clone --recurse-submodules https://github.com/linksplatform/RawDoubletsViewer | |
git clone --recurse-submodules https://github.com/linksplatform/react-deep-tree | |
git clone --recurse-submodules https://github.com/linksplatform/Reflection | |
git clone --recurse-submodules https://github.com/linksplatform/Reflection.Sigil | |
git clone --recurse-submodules https://github.com/linksplatform/RegularExpressions.Transformer | |
git clone --recurse-submodules https://github.com/linksplatform/RegularExpressions.Transformer.CppToJava | |
git clone --recurse-submodules https://github.com/linksplatform/RegularExpressions.Transformer.CSharpToCpp | |
git clone --recurse-submodules https://github.com/linksplatform/RegularExpressions.Transformer.CSharpToPython | |
git clone --recurse-submodules https://github.com/linksplatform/RegularExpressions.Transformer.HasuraSQLSimplifier | |
git clone --recurse-submodules https://github.com/linksplatform/RegularExpressions.Transformer.PythonToNim | |
git clone --recurse-submodules https://github.com/linksplatform/resourse-cooperation | |
git clone --recurse-submodules https://github.com/linksplatform/Scopes | |
git clone --recurse-submodules https://github.com/linksplatform/Scripts | |
git clone --recurse-submodules https://github.com/linksplatform/Setters | |
git clone --recurse-submodules https://github.com/linksplatform/Settings | |
git clone --recurse-submodules https://github.com/linksplatform/Sigil | |
git clone --recurse-submodules https://github.com/linksplatform/Singletons | |
git clone --recurse-submodules https://github.com/linksplatform/Threading | |
git clone --recurse-submodules https://github.com/linksplatform/Timestamps | |
git clone --recurse-submodules https://github.com/linksplatform/Unsafe |
😂 maybe use JS code?
👍🏿
The easiest way to clone all organization repositories: https://stackoverflow.com/a/68770988/13545849
Clone only main branch with the last commit:
gh repo list linksplatform --limit 1000 | while read -r repo _; do
gh repo clone "$repo" "$repo" -- --depth 1 --branch main --single-branch
done
@FreePhoenix888 your script does not clone all repositories:
gh repo list linksplatform --limit 1000 | while read -r repo _; do
repo_name=$(basename "$repo")
# Check if the repository is already cloned
if [ ! -d "$repo_name" ]; then
# Get the default branch of the repository
default_branch=$(gh repo view "$repo" --json defaultBranchRef -q ".defaultBranchRef.name")
# Clone the repository with the default branch and shallow depth
gh repo clone "$repo" "$repo_name" -- --depth 1 --branch "$default_branch" --single-branch
else
echo "Repository '$repo_name' already exists. Skipping clone."
fi
done
This one is better.
And this for people with good internet:
gh repo list linksplatform --limit 1000 | while read -r repo _; do
repo_name=$(basename "$repo")
if [ ! -d "$repo_name" ]; then
gh repo clone "$repo" "$repo_name" -- --recurse-submodules
else
echo "Repository '$repo_name' already exists. Skipping clone."
fi
done
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.bat file for cloning all Links Platform repositories using SSH :3
https://gist.github.com/Ythosa/4e97f6de98d20f03d29fe6c85f3fb8a1