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
- Check the gh version
- Sign in to GitHub
- Check who you are signed in as
- Clone a repository
- Fork a repository
- Open the repository in a browser
All setup and repositories commands · GitHub CLI 2 cheatsheet