GitHub CLI 2 · Setup and repositories
Clone a repository
Clone with your preferred protocol.
gh repo clone owner/repo
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
- Create a repository from the current folder
- Fork a repository
- Open the repository in a browser
All setup and repositories commands · GitHub CLI 2 cheatsheet