{"id":262,"date":"2018-04-17T08:36:37","date_gmt":"2018-04-16T20:36:37","guid":{"rendered":"https:\/\/content.ronella.xyz\/apps\/wordpress\/?p=262"},"modified":"2018-04-17T09:56:55","modified_gmt":"2018-04-16T21:56:55","slug":"downloading-a-github-pull-request","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=262","title":{"rendered":"Downloading a GitHub Pull Request"},"content":{"rendered":"<ol>\n<li>Open an open pull request on GitHub which normally has the following format:<br \/>\n<a href=\"https:\/\/www.ronella.xyz\/wordpress\/wp-content\/uploads\/2018\/04\/github-open-pull-request-header.png\"><img loading=\"lazy\" class=\"alignnone wp-image-264\" src=\"https:\/\/www.ronella.xyz\/wordpress\/wp-content\/uploads\/2018\/04\/github-open-pull-request-header.png\" alt=\"\" width=\"461\" height=\"64\" \/><\/a><\/li>\n<li>Open a terminal for running a git command <em>(e.g. bash, cmd, powershell, etc...)<\/em>.<\/li>\n<li>Navigate to the location where your git forked repository was cloned.<\/li>\n<li>Download a copy of a pull request using the following command:\n<pre>git fetch upstream pull\/&lt;ID&gt;\/head:&lt;NEW BRANCH&gt;<\/pre>\n<p>Where the variables can be describe as the following:<\/p>\n<table>\n<tbody>\n<tr>\n<td>&lt;ID&gt;<\/td>\n<td>This is the associated code attached to the pull request. Normally has the following format #&lt;ID&gt; <em>(e.g. #123)<\/em> or see the format from step 1.<\/td>\n<\/tr>\n<tr>\n<td>&lt;NEW BRANCH&gt;<\/td>\n<td>This is the unique desired branch name on your fork.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>Switch to the new branch and do what you want <em>(e.g. code review, testing)<\/em> using the following command:\n<pre>git checkout &lt;NEW BRANCH&gt;<\/pre>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Open an open pull request on GitHub which normally has the following format: Open a terminal for running a git command (e.g. bash, cmd, powershell, etc&#8230;). Navigate to the location where your git forked repository was cloned. Download a copy of a pull request using the following command: git fetch upstream pull\/&lt;ID&gt;\/head:&lt;NEW BRANCH&gt; Where the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[20,25],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/262"}],"collection":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=262"}],"version-history":[{"count":3,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/262\/revisions"}],"predecessor-version":[{"id":267,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/262\/revisions\/267"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}