Just one of the things I'm learning. https://github.com/hchiam/learning
Example workflow all using gh
: https://github.blog/2020-09-17-github-cli-1-0-is-now-available
More info: https://cli.github.com
NOTE: do NOT run yarn add gh
NOR npm install gh
because doing so will install node-gh/gh
instead of what you actually want: GitHub's official gh
cli
To create this repo on a Mac:
# Make sure you have Xcode installed and updated.
brew install gh
gh repo create learning-gh --public
Other commands I like:
gh repo create --template learning-template learning-... --public
gh repo clone
gh repo fork
gh issue list --repo hchiam/in-browser-style-linter
gh issue close 1
gh issue reopen 1
gh issue create
gh pr create
gh pr status
More here: https://github.com/hchiam/learning-bash-scripts
To get 2fa to work with gh cli, try this:
To create a new repo from a template repo, all from the CLI: