{"id":13163,"date":"2018-06-14T16:07:54","date_gmt":"2018-06-14T20:07:54","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=13163"},"modified":"2020-03-12T14:39:23","modified_gmt":"2020-03-12T18:39:23","slug":"how-to-fork-a-github-repository","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/wordpress-tutorials\/how-to-fork-a-github-repository\/","title":{"rendered":"How to fork a GitHub Repository"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><h2 id=\"what-is-forking\">What is Forking?<\/h2>\n<p><strong>Forking a repository<\/strong> means that you are copying it to your own GitHub profile. There are two primary reasons to <strong>fork a GitHub repository<\/strong>. Either you are forking it to propose a change to the project and contribute, or you are forking it as a starting point for a project you are beginning. The <strong>fork<\/strong> can act as a divergent point where the original repository may continue in one direction and the copy may evolve into something different. <\/p>\n<p>On the GitHub website, forking is the core of the social coding concept. <\/p>\n<h2 id=\"propose-a-change-to-someone-elses-project\">Propose a change to someone else&rsquo;s project<\/h2>\n<p>An example of proposing a change would be to <strong>fork a project <\/strong>to fix a bug, rather than raise an issue about it. To accomplish this, you would <strong>fork the GitHub repository<\/strong> to your profile, create a branch to fix the bug, test the code, and merge it into your master branch. Once that is done, you would then create a pull request to propose the person that owns the repository merge it with their code. <\/p>\n<h2 id=\"use-someones-project-as-a-starting-point\">Use someone&rsquo;s project as a starting point<\/h2>\n<p>An example using another person&rsquo;s project to start your own is <strong>forking the project <\/strong>to your profile, then making changes that you see fit. The purpose of this guide is to show you how to fork the BoldGrid starter child theme, so that you can begin working on it, and extending it fit to your needs. <\/p>\n<h2 id=\"how-to-fork-a-project\">How to Fork a Project<\/h2>\n<ol class=\"article-list\">\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-01-starter-repo.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-01-starter-repo-300x197.jpg\" alt=\"\" width=\"300\" height=\"197\" class=\"alignright size-medium wp-image-13167\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-01-starter-repo-300x197.jpg 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-01-starter-repo-768x505.jpg 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-01-starter-repo-1024x673.jpg 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-01-starter-repo-250x164.jpg 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-01-starter-repo-550x362.jpg 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-01-starter-repo-800x526.jpg 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-01-starter-repo-274x180.jpg 274w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-01-starter-repo-456x300.jpg 456w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-01-starter-repo-761x500.jpg 761w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-01-starter-repo.jpg 1121w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Navigate to the <a href=\"https:\/\/github.com\/boldgrid\/starter\" rel=\"noopener noreferrer\" target=\"_blank\">BoldGrid\/starter Repository<\/a>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-02-click-fork.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-02-click-fork-300x197.jpg\" alt=\"\" width=\"300\" height=\"197\" class=\"alignright size-medium wp-image-13168\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-02-click-fork-300x197.jpg 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-02-click-fork-768x505.jpg 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-02-click-fork-1024x673.jpg 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-02-click-fork-250x164.jpg 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-02-click-fork-550x362.jpg 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-02-click-fork-800x526.jpg 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-02-click-fork-274x180.jpg 274w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-02-click-fork-456x300.jpg 456w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-02-click-fork-761x500.jpg 761w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-02-click-fork.jpg 1121w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>In the top right of the Repository, click Fork\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-03-visit-profile.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-03-visit-profile-300x197.jpg\" alt=\"\" width=\"300\" height=\"197\" class=\"alignright size-medium wp-image-13169\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-03-visit-profile-300x197.jpg 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-03-visit-profile-768x505.jpg 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-03-visit-profile-1024x673.jpg 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-03-visit-profile-250x164.jpg 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-03-visit-profile-550x362.jpg 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-03-visit-profile-800x526.jpg 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-03-visit-profile-274x180.jpg 274w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-03-visit-profile-456x300.jpg 456w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-03-visit-profile-761x500.jpg 761w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/03\/13163-03-visit-profile.jpg 1121w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Visit your GitHub profile, and you will now see the Repository exists on your page\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<div style=\"clear: both;\"><\/div>\n\n<\/ol>\n<p>Congratulations! You now understand why you would fork a project and the process used in Github for that purpose. <\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>What is Forking? Forking a repository means that you are copying it to your own GitHub profile. There are two primary reasons to fork a GitHub repository. Either you are forking it to propose a change to the project and contribute, or you are forking it as a starting point for a project you are [&hellip;]<\/p>\n","protected":false},"author":529,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"bgseo_title":"How to fork a GitHub Repository","bgseo_description":"Forking a repository means that you are copying it to your own GitHub profile. This article will explain the steps needed to fork a GitHub Repository.","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[151],"tags":[],"class_list":["post-13163","post","type-post","status-publish","format-standard","hentry","category-wordpress-tutorials"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/13163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/users\/529"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/comments?post=13163"}],"version-history":[{"count":8,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/13163\/revisions"}],"predecessor-version":[{"id":18897,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/13163\/revisions\/18897"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=13163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=13163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=13163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}