[ot][spam][person] snippets
add remotes for and fetch forks of a github repository, 2022-04: export ORIGIN_USER=github-user ORIGIN_REPO=github-repo curl -v https://github.com/"$ORIGIN_USER"/"$ORIGIN_REPO"/network/members | sed -ne 's!.*class="" href="/\([^/]\{1,\}\)/\([^/]\{1,\}\)">.*!\1 \2!p' | while read forkuser forkrepo; do git remote add "$forkuser" https://github.com/"$forkuser"/"$forkrepo"; git fetch "$forkuser"; done can then likely review all history in parallel with git log --all
here it is as a clearer multiline bash script. i suppose those are copypasteable too. [for spice, i made this to put https://github.com/osmocom/rtl-sdr.git on a cdrom.] #!/usr/bin/env bash ORIGIN_USER="$1" ORIGIN_REPO="$2" curl -v https://github.com/"$ORIGIN_USER"/"$ORIGIN_REPO"/network/members | sed -ne 's!.*class="" href="/\([^/]\{1,\}\)/\([^/]\{1,\}\)">.*!\1 \2!p' | while read forkuser forkrepo do git remote add "$forkuser" https://github.com/"$forkuser"/"$forkrepo" git fetch "$forkuser" done git log --all
participants (1)
-
Undiscussed Horrific Abuse, One Victim of Many