This script allows you to interactively browse and selectively clone public repositories from any GitHub user by leveraging the GitHub REST API and jq.
-
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
Ensure jq is installed:
sudo apt install jq
Run the script
chmod +x repoCloner.sh
./repoCloner.sh
๐ก Tip: Pass
-a
or--all
to the script to Clone all repositories without prompting (remove the interactive prompt).
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
This script is provided under the MIT License. Use it, tweak it, and share it โ just give credit!
Name: | Description |
---|---|
Script: | repoCloner.sh |
Author: | Douglas Habian |
Version: | 1.1 |
Repo: | https://github.com/DouglasFreshHabian/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!
Check out my Shopify ๐ Store for creative artwork, custom Linux tools, and open-source solutions! Fresh Forensics Store
Purchase any products through Amazon by clicking on my affiliate links and I get a small percentage! Full List of Affiliate Links