Skip to content

Instantly share code, notes, and snippets.

@Maroo-b
Created January 16, 2025 11:54
Show Gist options
  • Select an option

  • Save Maroo-b/08cf56570a5753a3219c73f6a26b6a48 to your computer and use it in GitHub Desktop.

Select an option

Save Maroo-b/08cf56570a5753a3219c73f6a26b6a48 to your computer and use it in GitHub Desktop.

Revisions

  1. Maroo-b created this gist Jan 16, 2025.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    1. Install Gh cli tool
    2. Run `gh auth login`
    3. In a new directory run (change myorgname to the desired org value):
    ```
    gh repo list myorgname --limit 4000 | while read -r repo _; do
    gh repo clone "$repo" "$repo"
    done
    ```

    Ref: https://stackoverflow.com/questions/19576742/how-to-clone-all-repos-at-once-from-github