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.

Revisions

  1. jpoley created this gist Apr 12, 2020.
    7 changes: 7 additions & 0 deletions cloner.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/bin/bash
    input="gh-repo.txt"
    while IFS= read -r line
    do
    echo "git clone $line"
    git clone $line
    done < "$input"
    1 change: 1 addition & 0 deletions fetcher.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    for d in ./*/ ; do (cd "$d" && echo "$d" && git fetch); done
    13 changes: 13 additions & 0 deletions gh-repo.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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
    1 change: 1 addition & 0 deletions puller.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    for d in ./*/ ; do (cd "$d" && echo "$d" && git pull); done
    1 change: 1 addition & 0 deletions urler.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    for d in ./*/ ; do (cd "$d" && cat .git/config|grep url | awk {'print $3'}); done