sincecutoff.com
← all changes

gh repo clone accepts --no-upstream

Introduced 2026-03-10 · score 0.93

HOW TO USE IT

When cloning a fork without an upstream remote, run `gh repo clone <repository> --no-upstream`.

gh repo clone <fork> --no-upstream

WHY THIS HELPS

Clone a repository without configuring an upstream remote.

REQUIREMENTS AND LIMITATIONS

  • Version: v2.88.0
  • repository (required): Repository to clone; use OWNER/REPO, a GitHub URL, or another supported selector.
  • --no-upstream: Do not add an upstream remote when cloning a fork; also skips setting the parent as the default remote.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card