Skip to content

Clone and backup All the repositories using this script

Notifications You must be signed in to change notification settings

SyntaxBox/repo-cloning-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Repository Cloning Script

This script allows you to clone all GitHub repositories from the command line using GitHub CLI. It can also be used as a tool for local repository backups by cloning repositories to your local machine.

Requirements

  • GitHub CLI installed and configured
  • jq installed (for parsing JSON)

Usage

  1. Clone this repository or download the clone_repos.sh script.

  2. Make the script executable:

    chmod +x clone_repos.sh
  3. Run the script:

     ./clone_repos.sh [--dir <directory>]
    • If --dir option is provided, repositories will be cloned to the specified directory. If not provided, repositories will be cloned to the current directory.
  4. Sit back and watch as the script clones the repositories for you!

Example

Clone repositories to a specific directory:

./clone_repos.sh --dir ~/my_projects

Notes

  • This script is currently written in Bash and may not be fully compatible with all operating systems.
  • Consider rewriting it in a more cross-platform language like Python for broader compatibility.
  • If you encounter any issues or have suggestions for improvements, feel free to open an issue.

PRs are welcome!

Happy cloning!

About

Clone and backup All the repositories using this script

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages