cli/pkg/cmd
4RH1T3CT0R7 fa95f3a21b Add --no-upstream flag to gh repo clone
When cloning a forked repository, `gh repo clone` automatically adds the
parent repo as an `upstream` remote and sets it as the default repository.
This can be problematic when the user lacks access to the parent repo,
the upstream fetch is expensive for large repos, or the user simply
doesn't want the upstream remote.

Add a `--no-upstream` flag that skips adding the upstream remote when
cloning a fork. When used, origin (the fork) is set as the default
repository instead. The flag is mutually exclusive with
`--upstream-remote-name`. For non-fork repos the flag is a harmless
no-op.

Closes #8274
2026-02-14 20:31:02 +03:00
..
accessibility PR feedback 2025-04-30 15:05:07 -04:00
actions Remove trailing whitespace 2025-02-13 11:06:27 +05:00
agent-task Remove extra flag default from help usage 2025-11-17 10:09:17 -05:00
alias Fixes #10590 2025-03-26 13:42:39 -04:00
api docs(api): add example for --input option 2025-10-31 13:44:17 +00:00
attestation chore: apply go fix to remove deprecated // +build tags 2025-10-30 21:10:45 +00:00
auth refactor(auth refresh): use PlainHttpClient instead of zero http.Client 2025-10-13 16:51:13 +01:00
browse Add tests of browse --actions 2025-12-11 11:31:12 +00:00
cache fix(cache delete): add unit tests and expand help doc 2026-01-20 08:30:34 +01:00
codespace fix: resolve copyloopvar issues 2025-11-03 20:05:26 +00:00
completion Remove trailing whitespace 2025-02-13 11:06:27 +05:00
config Merge pull request #11003 from cli/kw-bks/enclose-config-options-in-code-blocks 2025-05-22 10:14:14 -06:00
copilot test(copilot): fix windows asset URL 2026-01-20 10:33:19 +00:00
extension Update actions/checkout to v6 in extension workflow templates 2025-12-30 23:39:34 +09:00
factory pin REST API version to 2022-11-28 2026-02-13 19:46:16 +01:00
gist fix: resolve nilerr issues 2025-11-03 20:05:26 +00:00
gpg-key Fix StatusJSONResponse usage (#10810) 2025-05-01 20:22:43 +01:00
issue Update edit tests 2026-01-26 13:29:22 -07:00
label Introduce color_labels support, update commands 2025-04-02 18:24:20 -04:00
org Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
pr document fork default branch behavior 2026-02-13 15:36:37 +01:00
preview Refactor MultiSelectWithSearch to use result struct 2026-01-26 13:29:22 -07:00
project Merge branch 'trunk' into kw/accessible-prompter-and-disable-spinners-config 2025-04-23 07:30:54 -06:00
release docs(release list): fix typo 2025-10-31 20:38:04 +00:00
repo Add --no-upstream flag to gh repo clone 2026-02-14 20:31:02 +03:00
root fix(root): avoid command name collision when registering extensions 2026-01-19 10:38:39 +00:00
ruleset Remove trailing whitespace 2025-02-13 11:06:27 +05:00
run Respect --exit-status with --log and --log-failed 2026-02-13 16:04:06 +01:00
search docs(search prs): mention advanced issue search syntax support 2025-09-08 18:37:37 +01:00
secret refactor: drop multierror in favor of std 2025-12-02 15:08:58 +01:00
ssh-key Remove out of scope changes, update list commands 2025-03-31 11:58:30 -04:00
status Deprecate ColorScheme.Gray for ColorScheme.Muted 2025-04-06 10:18:48 -04:00
variable refactor: drop multierror in favor of std 2025-12-02 15:08:58 +01:00
version Fix --version flag printing to stdout 2022-05-24 16:21:13 +02:00
workflow Quote filenames suggested at the end of worklow run 2025-06-16 18:02:47 +02:00