Created
April 12, 2020 18:26
-
-
Save jpoley/6239dc02fdda4ab07413e168f221ffb5 to your computer and use it in GitHub Desktop.
github clone view scripts for keeping projects in sync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| input="gh-repo.txt" | |
| while IFS= read -r line | |
| do | |
| echo "git clone $line" | |
| git clone $line | |
| done < "$input" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for d in ./*/ ; do (cd "$d" && echo "$d" && git fetch); done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for d in ./*/ ; do (cd "$d" && echo "$d" && git pull); done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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