-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cloning of all Github repositories
Signed-off-by: Lou Marvin Caraig <loumarvincaraig@gmail.com>
- Loading branch information
1 parent
f1c93a3
commit 58fc020
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
echo "Authenticating with Github token..." | ||
gh auth login --with-token < ~/.tokens/github/dotfiles.txt | ||
|
||
echo "Cloning repositories for se7entyse7en..." | ||
mkdir -p ~/Projects/se7entyse7en && cd ~/Projects/se7entyse7en | ||
gh repo list se7entyse7en --source -L 1000 --json sshUrl --jq '.[] | .sshUrl' | xargs -L1 git clone | ||
echo "All repositories for se7entyse7en cloned." |
This file contains 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