Created
April 2, 2025 09:52
-
-
Save alexandear/bd76c364c5fb2a8b82f60fa3e7f96e45 to your computer and use it in GitHub Desktop.
Transfer forks from username to org via GitHub CLI
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
| $from=alexandear | |
| $to=alexandear-org | |
| gh repo list --fork --limit 1000 --json name --jq ".[] | [.name] | @tsv" "$from" | while read -r repo; do; gh api "repos/$from/$repo/transfer" -f new_owner="$to" --silent; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment