Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to clone pull all repositories from github

CNTX={users|orgs}; NAME={username|orgname}; PAGE=1
curl "https://api.github.com/$CNTX/$NAME/repos?page=$PAGE&per_page=100" |
  grep -e 'git_url*' |
  cut -d " -f 4 |
  xargs -L1 git clone
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #clone #pull #repositories #github
ADD COMMENT
Topic
Name
7+2 =