- 
      
 - 
        
Save victorkashirin/bdc54b7298eedaa9529ca792e6ad4fe8 to your computer and use it in GitHub Desktop.  
    Mirror all organization repositories
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | org="whitehouse" | |
| for repo in $(curl -v -s "https://api.github.com/orgs/$org/repos?per_page=100&type=sources" 2>&1 | grep '"full_name": "*"' | cut -d':' -f2 | sed s'/,$//' | sed s'/"//g' ); do | |
| filename=$(echo "$repo" | cut -d'/' -f2) | |
| echo "Downloading $repo..." | |
| curl -o "$filename.zip" -L "https://github.com/$repo/archive/master.zip" | |
| done | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment