Describe the feature or problem you’d like to solve
Today I ran gh pr create on a repo I hadn't yet forked and decided to use the "create fork" option.
I was surprised to find that this added my fork as fork and left the upstream as origin.
After using gh repo fork for so long I would have expected it to switch origin to upstream and place my fork as origin.
Proposed solution
Modify the gh pr create fork helper to use the same behavior as gh repo fork and offer the option to move your personal fork to origin.
Additional context
I was able to work around this by running this after creating my PR:
git remote rm fork
gh repo fork
So it's not a big issue, but the behavior definitely surprised me.
Describe the feature or problem you’d like to solve
Today I ran
gh pr createon a repo I hadn't yet forked and decided to use the "create fork" option.I was surprised to find that this added my fork as
forkand left the upstream asorigin.After using
gh repo forkfor so long I would have expected it to switch origin to upstream and place my fork as origin.Proposed solution
Modify the
gh pr createfork helper to use the same behavior asgh repo forkand offer the option to move your personal fork to origin.Additional context
I was able to work around this by running this after creating my PR:
So it's not a big issue, but the behavior definitely surprised me.