Copyright © 2023 kk-min
Scripts for setting up git repos on a new machine.
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
- 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.
- 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 usingchmod +x clone_repos.sh
)