Git

Removing files from remote

Answer on StackOverflow

git rm --cached file_to_remove.txt

Cloning all repositories of an organization

gh repo list ORG_NAME --limit 4000 | while read -r repo _; do
  gh repo clone "$repo" "$repo"
done

Generate git patch off the latest commit

git format-patch -1 HEAD