Repository navigation
Creating PR cannot determine remote branch name #10862
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workinggh-prrelating to the gh pr commandrelating to the gh pr commandpriority-2Affects more than a few users but doesn't prevent core functionsAffects more than a few users but doesn't prevent core functions
Description
Activity
Hey @cs278, sorry for the inconvenience.
I think you're running into an issue here because you have
push.defaultset totrackingorupstreambut you don't have a remote tracking branch set.What's the output of
git config push.defaultandgit config get branch.issue/8670-update-docs.merge- addedmore-info-neededMore info needed from user/contributorMore info needed from user/contributorgh-prrelating to the gh pr commandrelating to the gh pr command
on Apr 24, 2025 What's the output of
git config push.defaultandgit config get branch.issue/8670-update-docs.merge$ git config push.default upstream $ git config get branch.issue/8670-update-docs.merge;echo $? 1Thanks. Are you working on a fork here, or just a single repo?
- linked a pull request that will close this issueFix pr create when push.default tracking and no merge ref #10863
on Apr 24, 2025 single repo
But I do have multiple remotes if that makes a difference.
I believe this is fixed in #10859, if you'd be up for confirming it you can follow our instructions to build from source. It would be much appreciated 🙏
- addedpriority-2Affects more than a few users but doesn't prevent core functionsAffects more than a few users but doesn't prevent core functionsand removedmore-info-neededMore info needed from user/contributorMore info needed from user/contributorneeds-triageneeds to be reviewedneeds to be reviewed
on Apr 24, 2025
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggh-prrelating to the gh pr commandrelating to the gh pr commandpriority-2Affects more than a few users but doesn't prevent core functionsAffects more than a few users but doesn't prevent core functions
Describe the bug
Using
gh pr createto create a new pull request fails whereas previously it worked.Affected version
Please run
gh versionand paste the output below.Steps to reproduce the behavior
gh pr createcould not determine remote branch nameExpected vs actual behavior
I expect to be asked to provide the pull request details e.g. title.
Logs
Paste the activity from your command line. Redact if needed.