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

All setup and repositories commands · GitHub CLI 2 cheatsheet

Was this page helpful?