Bash scripts for all cloning and updating git repos under an organization you have access to.
To use the scipts, follow the steps :
- Copy
cloneall.sh.example
tocloneall.sh
andupdateall.sh.example
toupdateall.sh
- Enter your username and user token in the bash scripts.
- Change the permissions by running
chmod 755 ./cloneall.sh ./updateall.sh
- Run
./cloneall.sh <location> <type of the repo> <user/organization>
to clone all the repos For eg./cloneall.sh . private sdslabs
to clone all private repos in current directory - Run
./updateall.sh <location> <type of the repo> <user/organization>
to update the cloned repos For eg./updateall.sh . private sdslabs
to update all private repos in current directory