Custom Search

Sunday, October 11, 2015

How to github Checking out pull requests locally

1)
fetch pull request 761 from remote "jiocloud_remote" and save in local branch "temp_branch".
$git fetch jiocloud_remote pull/761/head:temp_branch

2)
Then got to that branch where you want to apply changes in this pull request.
$git checkout mydevbranch

3)
Merge the Pull Request
$git merge -m 'Merging Pull Request' temp_branch

4)
If there is any conflict during merge then do following steps.
a) Fix conflict
b) $git add fixed_file
c) $git commit -a

5)
Done

No comments:

Post a Comment