LoginSignup
1
1

他の人のForkブランチからのPull Requestをローカルにチェックアウトする

Posted at

Fork運用で開発をしているときに、他の人のPull Requestの内容を自分のPCにチェックアウトするコマンド。忘れがちなのでメモ。

# もしまだなら、Fork元のリポジトリをリモートリポジトリとして登録する
# git remote add upstream <Fork元のリポジトリのURL>

git fetch upstream pull/<pull request number>/head:<branch name>
git checkout <branch name>
1
1
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
1
1