-
Notifications
You must be signed in to change notification settings - Fork 982
Open
Description
Describe the bug
Please see ## Steps to reproduce the behavior.
> gh --version
gh version 1.10.3 (2021-05-21)
https://github.com/cli/cli/releases/tag/v1.10.3Steps to reproduce the behavior
- Clone any repo. For this test, I cloned this repo with
git repo clone cli/cli. - Run
gh repo fork --remote=true --clone=true(orgit repo forkand select the equivalent of those arguments when prompted) - Commit some changes and run
git push. - See error:
ERROR: Permission to cli/cli.git denied to $USER.
fatal: Could not read from remote repository
Expected vs actual behavior
When forking a repo, gh should set the default remote to the fork, at least in my opinion.
Obviously, you can just run git push -u origin trunk yourself, replacing trunk with the current branch, or just run git push -u origin --all; however, I think it would make sense for gh repo fork to preform this automatically or at least provide the option to do so.
Logs
N/A
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels