Created
May 25, 2023 20:28
-
-
Save rodion-gudz/20338be689394aebb1a5ea67ae2593cd to your computer and use it in GitHub Desktop.
Fork all GitHub user's 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
echo "Enter a GitHub username: " | |
read username | |
repositories=$(gh repo list $username --json name | jq -r '.[].name') | |
for repo in $repositories | |
do | |
gh repo fork $username/$repo --clone=false || continue | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment