RepoCloner
This script allows you to interactively browse and selectively clone public repositories from any GitHub user by leveraging the GitHub REST API and jq. ๐๐
Install / Use
/learn @DouglasFreshHabian/RepoClonerREADME
This script allows you to interactively browse and selectively clone public repositories from any GitHub user by leveraging the GitHub REST API and jq.
๐ Features
-
Validates GitHub usernames by checking their profile URL
-
Fetches up to 100 public repositories using GitHubโs API
-
Prompts you for each repo, letting you choose whether to clone it
-
Uses clean ANSI-colored output for a better terminal experience
-
Written in portable Bash and depends only on jq and curl
-
The Script is capable of fetching every repo under a specific user without prompts
๐ How to Use
Ensure jq is installed:
sudo apt install jq
Run the script
chmod +x repoCloner.sh
./repoCloner.sh
๐ก Tip: Pass
-aor--allto the script to Clone all repositories without prompting (remove the interactive prompt).
๐ฎ Modifications To The Script:
You can easily modify this script to:
-
Filter by name, creation date, or stars using additional jq queries
-
Use authentication tokens to access private repos or increase API rate limits
๐ License
This script is provided under the MIT License. Use it, tweak it, and share it โ just give credit!
โ๏ธ Author
| Name: | Description | | :---------------- | :------------------------------------------------ | | Script: | repoCloner.sh | | Author: | Douglas Habian | | Version: | 1.1 | | Repo: | https://github.com/DouglasFreshHabian/RepoCloner |
๐ฐ Support RepoClonerโข๏ธ
Thank you for using and supporting RepoClonerโข! If this project has helped you, or if you appreciate the work put into it, there are several ways you can support the project.
Your support helps with continued development, testing, and future features. Any contribution is highly appreciated!
๐ Ways to Support
๐ Fresh Forensics Store (Shopify)
Check out my Shopify ๐ Store for creative artwork, custom Linux tools, and open-source solutions! Fresh Forensics Store
๐ Amazon Affiliate Links
Purchase any products through Amazon by clicking on my affiliate links and I get a small percentage! Full List of Affiliate Links
