- Fork it and download your copy
gh repo fork octocat/Spoon-Knife --cloneNeeds GitHub CLI, signed in. See “Install GitHub CLI and log in”. The original is added as “upstream” for you.
Check it worked
- Check where your copy points
git remote -vorigin is your fork. upstream is the original.
Undo it
- Delete your fork on GitHub
gh repo deleteRun it inside the folder and type the name to confirm. It deletes your copy only, never the original. GitHub may ask you to allow deleting first: gh auth refresh -s delete_repo
- Fork it and download your copy
gh repo fork octocat/Spoon-Knife --cloneNeeds GitHub CLI, signed in. See “Install GitHub CLI and log in”. The original is added as “upstream” for you.
Check it worked
- Check where your copy points
git remote -vorigin is your fork. upstream is the original.
Undo it
- Delete your fork on GitHub
gh repo deleteRun it inside the folder and type the name to confirm. It deletes your copy only, never the original. GitHub may ask you to allow deleting first: gh auth refresh -s delete_repo
- Fork it and download your copy
gh repo fork octocat/Spoon-Knife --cloneNeeds GitHub CLI, signed in. See “Install GitHub CLI and log in”. The original is added as “upstream” for you.
Check it worked
- Check where your copy points
git remote -vorigin is your fork. upstream is the original.
Undo it
- Delete your fork on GitHub
gh repo deleteRun it inside the folder and type the name to confirm. It deletes your copy only, never the original. GitHub may ask you to allow deleting first: gh auth refresh -s delete_repo

New to Fork? I explain it in plain English on Layman Terms.