Skip to content

Instantly share code, notes, and snippets.

@Hoyasumii
Created April 7, 2025 20:27
Show Gist options
  • Save Hoyasumii/2f22307b65e8f64fbd2ab49c5f3ca825 to your computer and use it in GitHub Desktop.
Save Hoyasumii/2f22307b65e8f64fbd2ab49c5f3ca825 to your computer and use it in GitHub Desktop.
private-repo.bash
#!/bin/bash
gh repo list <Owner> --visibility public --limit 1000 --json nameWithOwner -q '.[].nameWithOwner' | while read repo; do
echo "🔒 Tornando $repo privado..."
gh repo edit "$repo" --visibility private --accept-visibility-change-consequences
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment