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