You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/
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 #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.
The text was updated successfully, but these errors were encountered: