9
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

hub pull-requestがError creating pull requestになってしまうときは

Posted at

hubコマンドで以下の様なエラーが出てしまうことがありました。

$ hub pull-request
Error creating pull request: Unprocessable Entity (HTTP 422)
Missing field: "head_sha"
Missing field: "base_sha"
No commits between user:master and user:new_branch

対応としては-uオプション付きでもう一度pushすることです。
-uについてはこのあたりを参照してください。

$ git push -u origin new_branch

$ hub pull-request
#成功するはず!
9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?