Skip to content

Instantly share code, notes, and snippets.

@rodion-gudz
Created May 25, 2023 20:28
Show Gist options
  • Save rodion-gudz/20338be689394aebb1a5ea67ae2593cd to your computer and use it in GitHub Desktop.
Save rodion-gudz/20338be689394aebb1a5ea67ae2593cd to your computer and use it in GitHub Desktop.
Fork all GitHub user's repositories
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