Skip to content

Instantly share code, notes, and snippets.

@jpoley
Created April 12, 2020 18:26
Show Gist options
  • Select an option

  • Save jpoley/6239dc02fdda4ab07413e168f221ffb5 to your computer and use it in GitHub Desktop.

Select an option

Save jpoley/6239dc02fdda4ab07413e168f221ffb5 to your computer and use it in GitHub Desktop.
github clone view scripts for keeping projects in sync
#!/bin/bash
input="gh-repo.txt"
while IFS= read -r line
do
echo "git clone $line"
git clone $line
done < "$input"
for d in ./*/ ; do (cd "$d" && echo "$d" && git fetch); done
https://github.com/dgraph-io/badger.git
https://github.com/cilium/cilium.git
https://github.com/etcd-io/etcd.git
https://github.com/envoyproxy/go-control-plane.git
https://github.com/denisenkom/go-mssqldb.git
https://github.com/coreos/go-systemd.git
https://github.com/syndtr/goleveldb.git
https://github.com/open-policy-agent/opa.git
https://github.com/hashicorp/raft.git
https://github.com/rqlite/rqlite.git
https://github.com/hashicorp/serf
https://github.com/syncthing/syncthing.git
https://github.com/kubernetes/test-infra.git
for d in ./*/ ; do (cd "$d" && echo "$d" && git pull); done
for d in ./*/ ; do (cd "$d" && cat .git/config|grep url | awk {'print $3'}); done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment