Skip to content

This script allows you to interactively browse and selectively clone public repositories from any GitHub user by leveraging the GitHub REST API and jq. ๐ŸŒ€๐Ÿš€

License

Notifications You must be signed in to change notification settings

DouglasFreshHabian/RepoCloner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Kali Linux Parrot OS Debian/Ubuntu Raspberry Pi Arch Fedora

asciicast

๐ŸŒ€ GitHub Repo Cloner: Interactive Bash Script

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 -a or --all to 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

Buy Me a Coffee Youtube Membership Ko-fi Sponsor

๐Ÿ› 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


If you have not done so already, please head over to the channel and hit that subscribe button to show some support. Thank you!!!

๐Ÿ‘ Stay Fresh

About

This script allows you to interactively browse and selectively clone public repositories from any GitHub user by leveraging the GitHub REST API and jq. ๐ŸŒ€๐Ÿš€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages