Last active
April 26, 2021 17:29
-
-
Save yogeek/05dc9f752a83e067c01a3ed362bc942e to your computer and use it in GitHub Desktop.
github-cli.sh
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
######### | |
# Setup # | |
######### | |
# Install `gh` CLI | |
# - With https://github.com/asdf-vm/asdf : | |
asdf plugin add github-cli | |
asdf install github-cli latest | |
asdf global github-cli $(asdf list github-cli | xargs) | |
# - Or from https://github.com/cli/cli#installation | |
gh version | |
gh auth login | |
# Follow the indications... | |
############################# | |
# Forking and cloning repos # | |
############################# | |
gh repo fork <orga>/<repo> --clone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment