Open jpschewe opened 1 year ago
I faced this issue many time already, this is due to the local origin/HEAD
in your git repository to hold a different value than the actual upstream origin/HEAD
(aka default branch on github)
I solved this by running the following command
$ git remote set-head origin -a
origin/HEAD set to main
This actually update the local ref origin/HEAD
with the value from the remote repositoriy. Unfortunately this ref is not updated along with other refs when using git fetch
.
More details at : https://www.jvt.me/posts/2021/03/31/git-origin-head/
@TheoBrigitte that works well for me, thank you.
Command attempted: hub pull-request -i 1072
What happened: Error creating pull request: Unprocessable Entity (HTTP 422) Invalid value for "base"
More info:
VERBOSE data
Looking at the comments in https://github.com/github/hub/issues/189 I'm wondering if my configuration of push.default is the problem
I have this set so that I need to be explicit on what I push. Perhaps this setting isn't compatible with hub.
When I add "-b main" to the command line it works fine.