何をしたか feature/branch01というブランチで、(例えば)GitHub上にプルリクが作られています。 そのプルリクのレビューをするために、手元(ローカル)で色々確認したいとします。 $ git fetch #まずはリモートから取得 $ git switch origin/feature/branch01 #そのリモートブランチにswitchしたい fatal: a branch is expected, got remote branch 'origin/feature/branch01' $ git checkout origin/feature/branch01 Note: switching to 'origin/feature/branch01'. You are in 'detached HEAD' state. You can look around, make