{"id":157,"date":"2024-02-22T17:48:08","date_gmt":"2024-02-22T17:48:08","guid":{"rendered":"https:\/\/www.xopsschool.com\/tutorials\/?p=157"},"modified":"2024-02-29T17:58:29","modified_gmt":"2024-02-29T17:58:29","slug":"what-is-gitclone","status":"publish","type":"post","link":"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/","title":{"rendered":"What is gitclone?"},"content":{"rendered":"\n<p>Git clone is like making a same copy of a project. It lets you copy all the files and history from someone else&#8217;s project onto your computer. This project could be on your computer, or it could be on the internet. After you use git clone, you have your own copy of the project to work on.<\/p>\n\n\n\n<p><strong>Clone a repository<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>1.On GitHub.com, navigate to the main page of the repository.<\/li>\n\n\n\n<li>2. Above the list of files, click Code.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"408\" data-id=\"158\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21-1024x408.png\" alt=\"\" class=\"wp-image-158\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21-1024x408.png 1024w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21-300x120.png 300w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21-768x306.png 768w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21.png 1048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/figure>\n\n\n\n<p><strong>3. Copy the URL for the repository.<\/strong><br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To clone the repository using HTTPS, under &#8220;HTTPS&#8221;, click .<\/li>\n\n\n\n<li>To clone the repository using an SSH key, including a certificate issued by your organization&#8217;s SSH certificate authority, click SSH, then click .<\/li>\n\n\n\n<li>To clone a repository using GitHub CLI, click GitHub CLI, then click .<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"621\" height=\"379\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-23.png\" alt=\"\" class=\"wp-image-159\" style=\"width:503px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-23.png 621w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-23-300x183.png 300w\" sizes=\"auto, (max-width: 621px) 100vw, 621px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><\/li>\n<\/ul>\n\n\n\n<p>4. Open&nbsp;Git Bash.<\/p>\n\n\n\n<p>5. Change the current working directory to the location where you want the cloned directory.<\/p>\n\n\n\n<p>6. Type&nbsp;<code>git clone<\/code>, and then paste the URL you copied earlier.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/YOUR-USERNAME\/YOUR-REPOSITORY\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"648\" height=\"383\" data-id=\"162\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-25-2.png\" alt=\"\" class=\"wp-image-162\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-25-2.png 648w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-25-2-300x177.png 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>7. Press&nbsp;Enter&nbsp;to create your local clone.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ git clone https:\/\/github.com\/YOUR-USERNAME\/YOUR-REPOSITORY\n&gt; Cloning into `Spoon-Knife`...\n&gt; remote: Counting objects: 10, done.\n&gt; remote: Compressing objects: 100% (8\/8), done.\n&gt; remove: Total 10 (delta 1), reused 10 (delta 1)\n&gt; Unpacking objects: 100% (10\/10), done.<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Git clone is like making a same copy of a project. It lets you copy all the files and history from someone else&#8217;s project onto your computer. This project could be on your computer, or it could be on the internet. After you use git clone, you have your own copy of the project to &#8230; <a title=\"What is gitclone?\" class=\"read-more\" href=\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/\" aria-label=\"Read more about What is gitclone?\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-157","post","type-post","status-publish","format-standard","hentry","category-git-github"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is gitclone? - XOps Tutorials!!!<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is gitclone? - XOps Tutorials!!!\" \/>\n<meta property=\"og:description\" content=\"Git clone is like making a same copy of a project. It lets you copy all the files and history from someone else&#8217;s project onto your computer. This project could be on your computer, or it could be on the internet. After you use git clone, you have your own copy of the project to ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/\" \/>\n<meta property=\"og:site_name\" content=\"XOps Tutorials!!!\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-22T17:48:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-29T17:58:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21-1024x408.png\" \/>\n<meta name=\"author\" content=\"ritik hansda\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ritik hansda\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/\"},\"author\":{\"name\":\"ritik hansda\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7\"},\"headline\":\"What is gitclone?\",\"datePublished\":\"2024-02-22T17:48:08+00:00\",\"dateModified\":\"2024-02-29T17:58:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/\"},\"wordCount\":169,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21-1024x408.png\",\"articleSection\":[\"Git &amp; GitHub\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/\",\"name\":\"What is gitclone? - XOps Tutorials!!!\",\"isPartOf\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21-1024x408.png\",\"datePublished\":\"2024-02-22T17:48:08+00:00\",\"dateModified\":\"2024-02-29T17:58:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#primaryimage\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21.png\",\"contentUrl\":\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21.png\",\"width\":1048,\"height\":418},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.xopsschool.com\/tutorials\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is gitclone?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#website\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/\",\"name\":\"XOps Tutorials!!!\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.xopsschool.com\/tutorials\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7\",\"name\":\"ritik hansda\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6fe0bc437410899c524975272622377e50e726108b1ad03f7b4488f734304fce?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6fe0bc437410899c524975272622377e50e726108b1ad03f7b4488f734304fce?s=96&d=mm&r=g\",\"caption\":\"ritik hansda\"},\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/author\/ritikhansda\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is gitclone? - XOps Tutorials!!!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/","og_locale":"en_US","og_type":"article","og_title":"What is gitclone? - XOps Tutorials!!!","og_description":"Git clone is like making a same copy of a project. It lets you copy all the files and history from someone else&#8217;s project onto your computer. This project could be on your computer, or it could be on the internet. After you use git clone, you have your own copy of the project to ... Read more","og_url":"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/","og_site_name":"XOps Tutorials!!!","article_published_time":"2024-02-22T17:48:08+00:00","article_modified_time":"2024-02-29T17:58:29+00:00","og_image":[{"url":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21-1024x408.png","type":"","width":"","height":""}],"author":"ritik hansda","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ritik hansda","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#article","isPartOf":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/"},"author":{"name":"ritik hansda","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7"},"headline":"What is gitclone?","datePublished":"2024-02-22T17:48:08+00:00","dateModified":"2024-02-29T17:58:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/"},"wordCount":169,"commentCount":0,"image":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#primaryimage"},"thumbnailUrl":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21-1024x408.png","articleSection":["Git &amp; GitHub"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/","url":"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/","name":"What is gitclone? - XOps Tutorials!!!","isPartOf":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#primaryimage"},"image":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#primaryimage"},"thumbnailUrl":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21-1024x408.png","datePublished":"2024-02-22T17:48:08+00:00","dateModified":"2024-02-29T17:58:29+00:00","author":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7"},"breadcrumb":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#primaryimage","url":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21.png","contentUrl":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-21.png","width":1048,"height":418},{"@type":"BreadcrumbList","@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-gitclone\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.xopsschool.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"What is gitclone?"}]},{"@type":"WebSite","@id":"https:\/\/www.xopsschool.com\/tutorials\/#website","url":"https:\/\/www.xopsschool.com\/tutorials\/","name":"XOps Tutorials!!!","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.xopsschool.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7","name":"ritik hansda","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6fe0bc437410899c524975272622377e50e726108b1ad03f7b4488f734304fce?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6fe0bc437410899c524975272622377e50e726108b1ad03f7b4488f734304fce?s=96&d=mm&r=g","caption":"ritik hansda"},"url":"https:\/\/www.xopsschool.com\/tutorials\/author\/ritikhansda\/"}]}},"_links":{"self":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/comments?post=157"}],"version-history":[{"count":2,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/157\/revisions"}],"predecessor-version":[{"id":201,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/157\/revisions\/201"}],"wp:attachment":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/media?parent=157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/categories?post=157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/tags?post=157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}