diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-02-05 17:52:16 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-02-05 17:52:16 -0500 |
| commit | 2e2c0b35e6c6f84a5ff2c47defda33088f256b91 (patch) | |
| tree | 28a1dc08d96a2cf154b8a47268f353f9d8eda724 /bin/gh-clone-all | |
| parent | Update brewfile (diff) | |
| download | dotfiles-2e2c0b35e6c6f84a5ff2c47defda33088f256b91.zip | |
Add two small scripts
Diffstat (limited to 'bin/gh-clone-all')
| -rw-r--r-- | bin/gh-clone-all | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/gh-clone-all b/bin/gh-clone-all new file mode 100644 index 0000000..742189b --- /dev/null +++ b/bin/gh-clone-all @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Clone down all repositories from a GitHub entity. +# +# Args: +# $1: The entity name to clone. i.e. github.com/eugenetriguba => eugenetriguba + +gh repo list "$1" --limit 10000 | while read -r repo _; do + gh repo clone "$repo" "$repo" +done + |