gh repo fork owner/repo --clone

Category: GitHub CLI

gh repo fork owner/repo --clone

Fork a repository and immediately clone it locally

Forks a repository and immediately clones the fork to your local machine.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.