2017-06-20 81 views
2

我需要測試下面的請求:https://github.com/grobian/carbon-c-relay/pull/274。我已經將主回購站複製到本地驅動器:git clone https://github.com/grobian/carbon-c-relay.git carbon-c-relay。如何將拉請求中的更改合併到本地副本中,以便我可以編譯和測試?GIT - 如何測試分叉更改/拉取請求?

+1

見https://help.github.com/articles/checking-out-pull-requests-locally/ – phd

+1

是的,我發現我可以做一個'git pull origin pull/274/head' –

回答

1

我發現,您可以按如下拉一拉請求:git pull origin pull/274/head

+0

你也可以創建一個分支:'git fetch origin pull/274/head:pull-274 && git checkout pull-274'。 – phd

+0

很高興知道,謝謝 –