GitHub CLI 2 · Setup and repositories

Create a repository from the current folder

Create a public repository on GitHub, set it as origin and push.

gh repo create my-repo --public --source=. --push

Official GitHub CLI 2 documentation

More setup and repositories commands

All setup and repositories commands · GitHub CLI 2 cheatsheet

Was this page helpful?