Skip to content

Running gh pr create creates a PR, but does no longer push the branch upstream to remote #6958

@wiktoriavh

Description

@wiktoriavh

Describe the bug

This issue appeared since I updated to Version 2.22.1.

When I use gh pr create and follow the usual steps, it will create a Pull Request, but not connect the locale branch to the remote one.

Steps to reproduce the behavior

  1. Create a new branch and commit something
  2. Do not git push upstream!
  3. Use gh pr create to create a PR
  4. create more commits and then try to push them
  5. No remote branch found

Expected vs actual behavior

It should behave like it behaved before. When create a new PR with gh pr create it should also upstream the branch, so I can later push to it.

Logs

Paste the activity from your command line. Redact if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions