0
0

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.

【GitHub】プルリクエストをローカルに持ってきて確認する方法

Posted at

概要

特定のプルリクエストを指定してローカルへ反映し、
新しいブランチで作業を再開するときなどに利用した。

コマンド

プルリクエストのIDと任意のブランチ名を指定。

$ git fetch origin pull/ID/head:任意のブランチ名

任意のブランチ名で新しいブランチを切って、
そのブランチ名でプルリクエストのIDのコード内容が反映されたものができる

$ git checkout 任意のブランチ名
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?