Skip to content

gh repo fork: confirm before setting default repository in existing clones #12833

Open

Description

@scarf005

Describe the feature or problem you’d like to solve

In the existing-clone path of gh repo fork (when adding a fork remote), gh currently updates remote..gh-resolved=base automatically. That changes default-repository behavior without explicit confirmation in interactive use.

Proposed solution

When gh repo fork adds a fork remote in an existing clone, ask for confirmation before setting the parent as default repository. Add a --yes flag for explicit non-interactive opt-in.

Additional context

This is scoped to gh default repository resolution (gh-resolved), not Git push upstream configuration.

Activity

  1. added
    needs-triage
    on Mar 4, 2026
  2. added
    enhancement
    gh-repo
    on Mar 4, 2026
  3. github-actions commented on Mar 4, 2026

    @github-actions
    Contributor

    Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.

    Unless you see the help wanted Contributions welcome label, we are not currently looking for external contributions for this feature.

    If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.

  4. removed
    needs-triage
    on Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgh-repostale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions