Github
Github CLI 커맨드 - gh pr checkout
포포맨
2021. 6. 17. 17:35
Github CLI 커맨드 - gh pr checkout
다른사람이 올린 PR로 브랜치를 이동할 수 있습니다.
샘플코드
$ gh pr checkout <PR번호>
$ gh pr checkout 12
remote: Enumerating objects: 66, done.
remote: Counting objects: 100% (66/66), done.
remote: Total 83 (delta 66), reused 66 (delta 66), pack-reused 17
Unpacking objects: 100% (83/83), done.
From https://github.com/owner/repo
* [new ref] refs/pull/8896/head -> patch-2
M README.md
Switched to branch 'patch-2'