Bulk clone git repositories from your GitHub account/organization (using GitHub CLI) by typing clone_repos
.
Update all the git repositories in a folder by typing update_repos
.
- Install GitHub CLI (necessary for
clone_repos
) - Add the functions to your shell configuration file (e.g.,
~/.zshrc
for zsh shell) by either:- Copying the desired functions from
bulk-utils.sh
directly - Importing it by adding:
source /path/to/git-utils/bulk-utils.sh
- Copying the desired functions from
- Reload the shell settings by typing
source ~/.zshrc
or close and reopen the terminal
Navigate to the desired folder and type:
clone_repos <user> <access_token>
When an access_token is provided, it will automatically download all the repos in a fully unattended mode.
When an access_token is NOT provided, it will prompt the user to authenticate to GitHub and will assume that SSH is the preferred method for cloning the repos.
Navigate to the desired folder and type:
update_repos