{"id":587,"date":"2017-07-13T16:56:19","date_gmt":"2017-07-13T11:26:19","guid":{"rendered":"http:\/\/www.cyberaka.com\/?p=587"},"modified":"2017-07-13T16:57:46","modified_gmt":"2017-07-13T11:27:46","slug":"fetching-colleagues-fork-on-github","status":"publish","type":"post","link":"https:\/\/www.cyberaka.com\/?p=587","title":{"rendered":"Fetching colleague&#8217;s fork on Github"},"content":{"rendered":"<p>I am currently using Github and all project members have forked the main repository into private repository. Now the problem is that I need to review my colleagues code committed in his branch inside his forked repository. So to do this I found out a <a href=\"https:\/\/stackoverflow.com\/questions\/9153598\/how-do-i-fetch-a-branch-on-someone-elses-fork-on-github\">good article<\/a>\u00a0that showed me exactly how to do that. I used the following\u00a0approach.<\/p>\n<pre class=\"p1\"><span class=\"s1\">git remote add my-colleague\u00a0https:\/\/github.xyz.com\/my-colleague\/project.git<\/span>\r\n\r\n<span class=\"s1\">git fetch my-colleague<\/span>\r\n\r\n<span class=\"s1\">git checkout -b my-colleague-branch --track my-colleague\/branch<\/span><\/pre>\n<p class=\"p1\">After I do this I can see all the work done by my colleague and I can switch back to my branch anytime.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am currently using Github and all project members have forked the main repository into private repository. Now the problem is that I need to review my colleagues code committed in his branch inside his forked repository. So to do this I found out a good article\u00a0that showed me exactly how to do that. I [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56,23],"tags":[],"class_list":["post-587","post","type-post","status-publish","format-standard","hentry","category-git","category-programming"],"_links":{"self":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=587"}],"version-history":[{"count":4,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/587\/revisions"}],"predecessor-version":[{"id":591,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/587\/revisions\/591"}],"wp:attachment":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}