Skip to content

The --repo flag is redundant when running gh pr create  #423

Description

@jbampton

medium

The --repo flag is redundant when running gh pr create from within a local clone of the repository. The GitHub CLI automatically detects the target repository from the git remotes.

gh pr create \

Originally posted by @gemini-code-assist[bot] in #420 (comment)

Activity

  1. changed the title [-]he `--repo` flag is redundant when running `gh pr create` [/-] [+]The `--repo` flag is redundant when running `gh pr create` [/+] on Apr 4, 2026
  2. added theissue type on Sep 25, 2026
  3. added this to the Hacktoberfest 2026 milestone on Sep 25, 2026
  4. Prathamesh-Singh commented on Oct 8, 2026

    @Prathamesh-Singh
    Member

    Hi @jbampton, I’d like to work on issue #423. I understand that the redundant --repo flag should be removed from the gh pr create command when run from inside the repository.

    Could you please assign this issue to me and confirm the exact file that should be updated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    • Status
      To do

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions