LoginSignup
2
1

More than 3 years have passed since last update.

【共同開発】 レビュワーする時のgit コマンド

Last updated at Posted at 2021-02-04

共同開発をしていると必ずと必ず誰かがレビューをしなくてはいけません。
そこで使用したコマンドをメモ書き程度ですが、紹介します^^

それでは行きましょー!!

レビュワーの作業内容

差分確認(自動作成ファイル以外)→ 動作確認

手順

作業ブランチからmaster(develop)に移動

$ git switch master

そしてレビューするブランチをローカルに取り込みます!

$ git fetch origin pull/プルリクの番号(ID)/head:[ブランチ名]

実行する!

$ git fetch origin pull/5/head:hoge

remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 5 (delta 3), reused 5 (delta 3), pack-reused 0
Unpacking objects: 100% (5/5), 461 bytes | 57.00 KiB/s, done.
From github.com:hoge/hellow-world
 * [new ref]         refs/pull/5/head -> hoge

ブランチを確認!

 $ git branch

    * master
      hoge

レビューするブランチが確認出来たら移動^^

$ git checkout hoge  

あとは動作確認してコメントするなりして
おっけいーです^^

おわりに

初めてのレビューをさせてもらったので、
まだまだわからない事が多いですが
日々積み上げ頑張ります^^🙌

やったもん勝ちですww
2
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
2
1