Skip to content

Instantly share code, notes, and snippets.

@yogeek
Last active April 26, 2021 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yogeek/05dc9f752a83e067c01a3ed362bc942e to your computer and use it in GitHub Desktop.
Save yogeek/05dc9f752a83e067c01a3ed362bc942e to your computer and use it in GitHub Desktop.
github-cli.sh
#########
# 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