{"id":358813,"date":"2021-10-27T23:00:49","date_gmt":"2021-10-27T20:00:49","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-fork-a-github-repository\/"},"modified":"2021-10-27T23:00:49","modified_gmt":"2021-10-27T20:00:49","slug":"how-to-fork-a-github-repository","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-fork-a-github-repository\/","title":{"rendered":"#How to Fork a GitHub Repository"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a264b047e81d\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a264b047e81d\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-fork-a-github-repository\/#Cloning_vs_Forking_Whats_the_Difference\" >Cloning vs Forking: What\u2019s the Difference?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-fork-a-github-repository\/#When_Should_You_Fork_Instead_of_Clone\" >When Should You Fork Instead of Clone?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-fork-a-github-repository\/#How_to_Fork_a_GitHub_Repository\" >How to Fork a GitHub Repository<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to Fork a GitHub Repository&#8221;<\/strong><\/p>\n<div>\n<img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage alignnone size-full wp-image-738302\" srcset=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/06\/GitHub-hero.png?width=398&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 400w, https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/06\/GitHub-hero.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 1200w\" sizes=\"auto, 400w, 1200w\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/06\/GitHub-hero.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"GitHub hero\" width=\"1200\" height=\"675\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>While the concept of forking a GitHub repository is similar to cloning, there is an important difference between the two. We explain what the difference is, when you may want to fork instead of clone, and how to do it.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Cloning_vs_Forking_Whats_the_Difference\"><\/span>Cloning vs Forking: What\u2019s the Difference?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>When you <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/451360\/how-to-clone-a-github-repository\/\">clone a repo, you copy that repository to your local machine and are essentially subscribing to any updates made to that repo. That is, if other contributors to the repository make any changes, you can pull those changes to your local machine, updating your copy of the repository with all the changes made.<\/p>\n<p>However, when you fork a repository, you\u2019re copying the origin repository to your GitHub account instead of your local machine. When you do this, none of the updates made to the source repo will be reflected to your forked repo unless you decide to sync the two. This allows you to work on the repo without the worry of the code or content being updated.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"When_Should_You_Fork_Instead_of_Clone\"><\/span>When Should You Fork Instead of Clone?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There are a few different reasons why you may want to fork a repository instead of clone it. One reason is if you want to test some new ideas you have without the worry of accidentally messing up the source project. You\u2019d be free to alter any code you like for testing purposes without actually touching the source code. This keeps everyone h<a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>y.<\/p>\n<p>Another reason could be because you don\u2019t agree with the direction a project is going. You could fork the repository and make your own changes to the code to take the project in the direction you think it should go.<\/p>\n<p>One very important note to keep in mind is that if you fork a public repository, your fork still exists even if the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/716130\/how-to-delete-a-github-repository\/\">origin repository is deleted. However, when a private repository is deleted, all forks of that repository are also deleted.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Delete a GitHub Repository<\/em><\/strong><\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"How_to_Fork_a_GitHub_Repository\"><\/span><a rel=\"nofollow noopener\" target=\"_blank\" name=\"autotoc_anchor_2\">How to Fork a GitHub Repository<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Forking a repo is simple and can be done in just a few clicks. To fork a repo, <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/github.com\/login\">log in to your account<\/a> and then go to the repository you want to fork. In the top-right corner of the window, you\u2019ll see a \u201cFork\u201d button with a number to the right of it, which represents the number of times the repository has been forked. Go ahead and click that button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-759390\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/10\/Click-the-Fork-button..png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Click the Fork button.\" width=\"409\" height=\"197\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>A message will briefly appear letting you know that the forking process has started. It only takes a few seconds to fork the repo.<\/p>\n<p>That\u2019s all there is to it. It\u2019s that easy.<\/p>\n<p>You\u2019re now safe to make any changes to the code in your forked repository that you like. To do so, just clone the forked repository to your local machine and get busy!<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Clone a GitHub Repository<\/em><\/strong><\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/759384\/how-to-fork-a-github-repository\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Fork a GitHub Repository&#8221; While the concept of forking a GitHub repository is similar to cloning, there is an important difference between the two. We explain what the difference is, when you may want to fork instead of clone, and how to do it. Cloning vs Forking: What\u2019s the Difference? When you clone&#8230;<\/p>\n","protected":false},"author":1,"featured_media":358814,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/06\/GitHub-hero.png?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-358813","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/358813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=358813"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/358813\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/358814"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=358813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=358813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=358813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}