kk-min / git-setup

Script to clones all your repos under a parent directory.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Git Setup

Copyright © 2023 kk-min

Scripts for setting up git repos on a new machine.

Requirements

Python:

  • Requests library: pip install requests

Bash:

  • jq cli JSON processor: sudo apt-get install jq for Ubuntu/Debian systems, or via your distro's package manager

Usage

  1. Add your github access token in config.toml. Ensure that this token has permission to read repositories. If setting up a fine-grained token, ensure that it has read access to repository metadata at minimum to read private repos.
  2. To clone all repositories under <path>,
  • Python: python clone_repos.py <path>
  • Bash: ./clone_repos.sh <path> (You may need to make the file executable using chmod +x clone_repos.sh)

About

Script to clones all your repos under a parent directory.


Languages

Language:Python 61.9%Language:Shell 38.1%