Skip to content

Instantly share code, notes, and snippets.

View dimitris-prasakis's full-sized avatar
⚙️
.

Dimitris Prasakis dimitris-prasakis

⚙️
.
View GitHub Profile
@dimitris-prasakis
dimitris-prasakis / clone_org.sh
Created May 20, 2025 12:01
Clone whole Git org
#!/bin/bash
# Usage: ./clone_org.sh <organization>
gh auth login
gh repo list "$1" --limit 1000 | while read -r repo _; do
gh repo clone "$repo" "$repo"
done
# Snippet as seen in https://stackoverflow.com/questions/19576742/how-to-clone-all-repos-at-once-from-github