TIP-IT유용한정보

[Git] pr(Pull Request)을 로컬에서 확인하는 법

무한열정 2023. 4. 28. 16:20

GitHub에서 pr(Pull Request) 들어온 내용 

내 Local로 내리는 방법

$ git clone ${ 저장소 주소 }
$ cd ${ 저장소 이름 }
$ git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
$ git fetch origin
$ git checkout -t origin/pr/${ 가져오고 싶은 pr 번호 }