Use bash+curl+github api to download your gists. Gists are not exported when you Download your account data via export, unfortunately.
For more details check out the documentation on REST API endpoints for gists and gist comments
Get your fine-grained personal access token. Make sure you have access to gists.
Note: If you don't care about getting your private gists, you can just skip the Authorization header below.
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/gists > list-of-gists.jsonmkdir -p {public,private}
jq '.[]| select(.public == false)' ./list-of-gists.json > ./private/private-gists.json
jq '.[]| select(.public == true)' ./list-of-gists.json > ./public/public-gists.json
pushd public
for url in $(jq -r '.git_pull_url' public-gists.json); do git clone "${url}" || true ; done
popd
pushd private
for url in $(jq -r '.git_pull_url' private-gists.json); do git clone "${url}" || true ; done
popd