Skip to content

Instantly share code, notes, and snippets.

View BhargavMantha's full-sized avatar
🐉
I break code 😆

Bhargav Mantha BhargavMantha

🐉
I break code 😆
View GitHub Profile
@BhargavMantha
BhargavMantha / clonePrivate.sh
Created July 12, 2020 00:49
This is the sh file of linux to clone private repositories of the user
#!/bin/bash
#!!!This is for Internal use only use at your own risk
#optional change working_dir
# working_dir=${1-$(pwd)}
# cd $working_dir
GHUSER="<USERNAME>"
GITHUB_API_PASSWORD="<Password>"
repo_list=$(curl -S --user ${GHUSER}:${GITHUB_API_PASSWORD} \
https://api.github.com/user/repos?visibility=private |