{"id":17620,"date":"2020-10-19T01:48:02","date_gmt":"2020-10-19T08:48:02","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=17620"},"modified":"2023-12-01T04:01:37","modified_gmt":"2023-12-01T12:01:37","slug":"git-clone","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/git-clone\/","title":{"rendered":"Git Clone"},"content":{"rendered":"\n<p><em>The git clone command creates a copy of a remote repository on your local machine. By default, the clone command saves your code in a folder that shares the name of your repository. This can be overwritten by specifying a folder name after the URL of the repository you want to clone.<\/em><\/p>\n\n\n\n<p>Creating local copies of a Git repository stored elsewhere is a central part of the Git version control system.<\/p>\n\n\n\n<p>The git clone command lets you create a local copy of a repository stored elsewhere. This copy is also referred to as a \u201cclone.\u201d<\/p>\n\n\n\n<p>In this tutorial, we\u2019re going to explore the basics of the git clone command. We&#8217;ll discuss how to clone a local and remote repository, and how to clone a bare repository.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is the git clone Command?<\/h2>\n\n\n\n<p>The git clone command creates a copy of an existing repository to a working directory on your local computer.<\/p>\n\n\n\n<p>Cloning is a central feature of Git. This is because cloning allows you to create a copy of your code independent of the main version. You can run this copy run and manipulate your code on your local machine without affecting the code in your main version.<\/p>\n\n\n\n<p>This means that you don\u2019t have to make changes to a repository until you are ready to do so. After you have made any changes, you can push the code to a remote repository to be stored. Or, you can create a pull request so that other people can review the code you have written.<\/p>\n\n\n\n<p>There are two ways you can set up a repository using Git. You can clone an existing repository using the git clone command, or you can use the <a href=\"https:\/\/careerkarma.com\/blog\/git-init\/\">git init command<\/a> to create a new repository.<\/p>\n\n\n\n<p>Cloning a repository is typically a one-time action. After you&#8217;ve cloned a repository, you\u2019ll have all the code you need on your local machine to work with a Git repository.<\/p>\n\n\n\n<p>The git clone command clones all the metadata associated with a repository. Once you have cloned a repository, you&#8217;ll have a record of the entire history of the project. The clone command also clones all Git branches associated with a project.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Use Git Clone<\/h2>\n\n\n\n<p>The git clone command creates a clone of an existing repository in a new directory on your local machine. When you clone a repository to your local machine, a new environment will be created where the code for the repo will be stored.<\/p>\n\n\n\n<p>Let\u2019s walk through an example of how to use the git clone command to clone a repository. Suppose we are looking to clone a repository from GitHub to our local machine.<\/p>\n\n\n\n<p>We could use the following command line operation to clone our project:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git clone https:\/\/github.com\/username\/project-name.git\ncd project-name<\/pre><\/div>\n\n\n\n<p>In our code, the first command creates a new Git repository based on the one stored at the GitHub URL we specified. The name of the folder in which our code appears is equal to the name of the repository. In this case, Git creates a folder called project-name.<\/p>\n\n\n\n<p>Then, we use the <a href=\"https:\/\/careerkarma.com\/blog\/linux-command-line\/\">cd command<\/a> to move into our new Git repository. Now we are viewing our new repository, we can start viewing and editing our files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Custom Clone Operations<\/h2>\n\n\n\n<p>The git clone command accepts a few parameters. You can use these parameters to perform custom clone operations. Let\u2019s explore an example of the main custom operations you may want to know about when you\u2019re working with git clone.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Clone to a Folder<\/h3>\n\n\n\n<p>By default, a folder is created with the same name as the repository we cloned. In our first example, we cloned a repository without specifying a folder name. The resultant copy of our repository was called ck-git. This is because we did not state a folder name.<\/p>\n\n\n\n<p>However, when you\u2019re cloning a repository, you may want to clone it into a specific folder. You can do so by specifying a directory name in which a Git repository should be cloned.<\/p>\n\n\n\n<p>We can run git clone commands with a second argument like so:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git clone &lt;repo&gt; &lt;folder&gt;<\/pre><\/div>\n\n\n\n<p>Suppose we want to clone the contents of a hypothetical Git repo to a folder called \u201cmy-project\u201d. We could do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git clone https:\/\/github.com\/username\/project-name.git my-project\ncd my-project<\/pre><\/div>\n\n\n\n<p>First, our code clones the GitHub repository we referenced. In our example, we specify a folder name, \u201cmy-project\u201d, which is where the code for our repo will be cloned. Then, we use cd to move into the my-project folder the git clone command created.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create a Shallow Clone<\/h3>\n\n\n\n<p>By default, when you clone a repository, the <a href=\"https:\/\/careerkarma.com\/blog\/git-log\/\">history of the repository<\/a> will also be cloned. If your project has hundreds of commits, it will take longer for a local clone to be created.<\/p>\n\n\n\n<p>To skip cloning an entire repository, you can create a shallow clone. Shallow clones only clone the history of commits specified by the \u201cdepth\u201d parameter that is used to create a shallow clone.<\/p>\n\n\n\n<p>The syntax for creating a shallow clone is as follows:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git clone -depth=1 &lt;repo&gt;<\/pre><\/div>\n\n\n\n<p>The value of the \u201cdepth\u201d parameter refers to the number of historical commits you want to clone. In this case, we specified 1 as the value of the \u201cdepth\u201d parameter. This means that the clone command will only copy the most recent commit to our local machine.<\/p>\n\n\n\n<p>Suppose our hypothetical GitHub repository had 10,000 commits, which means it would take quite a while to copy completely to our local machine. We only want to clone a copy of the current code and its 10 last commits, without also cloning the entire repository\u2019s history. We could do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git clone -depth=10 https:\/\/github.com\/username\/project-name.git<\/pre><\/div>\n\n\n\n<p>The above command has created a copy of our project in its current state. We can search back 10 commits in the history of the repository. However, our project does not data on any commits further back in the repository\u2019s history.<\/p>\n\n\n\n<p>Read the official <a href=\"https:\/\/git-scm.com\/docs\/git-clone\" target=\"_blank\" rel=\"noopener\" rel=\"nofollow\">Git documentation<\/a> on the git clone command to learn more about advanced configuration options.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Git URLs<\/h2>\n\n\n\n<p>There are a number of different URL types that are supported by the git clone command. The git clone command is usually used to clone remote repositories, and so we will explore the main URL types supported by Git below.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Git<\/h3>\n\n\n\n<p>The git protocol is used to clone a repository using the Git version control system. The git protocol does not use any methods of authentication. Here\u2019s an example URL that uses the Git version control system:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git:\/\/host.com\/repo\/path.git<\/pre><\/div>\n\n\n\n<p>The URL starts with \u201cgit:\u201d, which tells the Git client to clone a repository using the git protocol.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SSH<\/h3>\n\n\n\n<p><a href=\"https:\/\/careerkarma.com\/blog\/ssh-command\/\">Secure Shell<\/a>, or SSH, lets you access networked servers remotely. SSH provides authentication, and so SSH URLs are often used for secure Git repositories. Here is an example Git URL that uses the SSH protocol:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>ssh:\/\/user@host.com\/repo\/path.git<\/pre><\/div>\n\n\n\n<p>In this example, \u201cuser\u201d refers to the name of the user who is trying to access a particular repository. We must sign in over SSH before we can clone a repository.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">HTTP<\/h3>\n\n\n\n<p><a href=\"https:\/\/careerkarma.com\/blog\/what-is-http\/\">HyperText Transfer Protocol<\/a>, or HTTP, is used for transferring web page data across the internet. HTTP URLs are commonly used for Git repositories, too. Here is an example Git URL that uses HTTP:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>https:\/\/host.com\/repo\/path.git<\/pre><\/div>\n\n\n\n<p>In this example, our repository uses the HTTPS protocol. Instead of using \u201cgit\u201d or \u201cssh\u201d, we instead specify \u201chttps\u201d at the start of our Git repository URL.<\/p>\n\n\n\n<iframe loading=\"lazy\" src=\"https:\/\/repl.it\/@careerkarma\/Git-Clone?lite=true\" width=\"100%\" height=\"400px\" frameborder=\"0\"><\/iframe>\n<br>\n<br>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The git clone command is used to create a local copy of a Git repository. Cloning lets you create an independent copy of a repository from which you can edit without affecting the main version of your project.<\/p>\n\n\n\n<p>When you are ready to save your changes to the main version of a project, you can create a commit.<\/p>\n\n\n\n<p>This tutorial explored, with examples, how to use the git clone command. Now you have the knowledge you need to start cloning repositories using git clone like a professional programmer!<\/p>\n","protected":false},"excerpt":{"rendered":"The git clone command creates a copy of a remote repository on your local machine. By default, the clone command saves your code in a folder that shares the name of your repository. This can be overwritten by specifying a folder name after the URL of the repository you want to clone. Creating local copies&hellip;","protected":false},"author":240,"featured_media":17621,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17286],"tags":[],"class_list":{"0":"post-17620","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-git"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Git","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Git commands: Git Clone - master work with branches<\/title>\n<meta name=\"description\" content=\"The git clone command allows you to create a clone, or a copy, of a remote Git code repository. On Career Karma, learn how to use the git clone command.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/git-clone\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git Clone\" \/>\n<meta property=\"og:description\" content=\"The git clone command allows you to create a clone, or a copy, of a remote Git code repository. On Career Karma, learn how to use the git clone command.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/git-clone\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-19T08:48:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:01:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/photography-of-woman-using-laptop-1181681.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"681\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-clone\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-clone\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Git Clone\",\"datePublished\":\"2020-10-19T08:48:02+00:00\",\"dateModified\":\"2023-12-01T12:01:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-clone\\\/\"},\"wordCount\":1298,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-clone\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/photography-of-woman-using-laptop-1181681.jpg\",\"articleSection\":[\"Git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-clone\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-clone\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-clone\\\/\",\"name\":\"Git commands: Git Clone - master work with branches\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-clone\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-clone\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/photography-of-woman-using-laptop-1181681.jpg\",\"datePublished\":\"2020-10-19T08:48:02+00:00\",\"dateModified\":\"2023-12-01T12:01:37+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The git clone command allows you to create a clone, or a copy, of a remote Git code repository. On Career Karma, learn how to use the git clone command.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-clone\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-clone\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-clone\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/photography-of-woman-using-laptop-1181681.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/photography-of-woman-using-laptop-1181681.jpg\",\"width\":1020,\"height\":681},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-clone\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Git\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Git Clone\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/author\\\/jamesgallagher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Git commands: Git Clone - master work with branches","description":"The git clone command allows you to create a clone, or a copy, of a remote Git code repository. On Career Karma, learn how to use the git clone command.","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:\/\/careerkarma.com\/blog\/git-clone\/","og_locale":"en_US","og_type":"article","og_title":"Git Clone","og_description":"The git clone command allows you to create a clone, or a copy, of a remote Git code repository. On Career Karma, learn how to use the git clone command.","og_url":"https:\/\/careerkarma.com\/blog\/git-clone\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-10-19T08:48:02+00:00","article_modified_time":"2023-12-01T12:01:37+00:00","og_image":[{"width":1020,"height":681,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/photography-of-woman-using-laptop-1181681.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/git-clone\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/git-clone\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Git Clone","datePublished":"2020-10-19T08:48:02+00:00","dateModified":"2023-12-01T12:01:37+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/git-clone\/"},"wordCount":1298,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/git-clone\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/photography-of-woman-using-laptop-1181681.jpg","articleSection":["Git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/git-clone\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/git-clone\/","url":"https:\/\/careerkarma.com\/blog\/git-clone\/","name":"Git commands: Git Clone - master work with branches","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/git-clone\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/git-clone\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/photography-of-woman-using-laptop-1181681.jpg","datePublished":"2020-10-19T08:48:02+00:00","dateModified":"2023-12-01T12:01:37+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The git clone command allows you to create a clone, or a copy, of a remote Git code repository. On Career Karma, learn how to use the git clone command.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/git-clone\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/git-clone\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/git-clone\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/photography-of-woman-using-laptop-1181681.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/photography-of-woman-using-laptop-1181681.jpg","width":1020,"height":681},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/git-clone\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Git","item":"https:\/\/careerkarma.com\/blog\/git\/"},{"@type":"ListItem","position":3,"name":"Git Clone"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/17620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=17620"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/17620\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/17621"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=17620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=17620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=17620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}