6
2

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 1 year has passed since last update.

GitHubでプルリクエストをクローズする方法

Posted at

概要

GitHubにおいて、プルリクエスト(マージリクエスト)をキャンセル(クローズ)する方法を記述します。

手順

  1. GitHubでプロジェクトのリポジトリを開きます。
  2. "Pull requests" タブをクリックします。
  3. キャンセルしたいプルリクエストをクリックします。
  4. プルリクエストの下部にある "Close pull request" ボタン(または "Close" ボタン)をクリックします。

解説

この操作を行うと、プルリクエストはキャンセルされ(クローズされ)、マージが行われません。ただし、プルリクエストそのものやその中のコメント、コミットは削除されません。これらは後から参照することができます。
なお、誤ったソースコードをマージ依頼した場合でも、プルリクエストをクローズしてから正しいソースコードで新たにプルリクエストを作成することが可能です。

6
2
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
6
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?