{"id":38563,"date":"2016-06-23T11:00:56","date_gmt":"2016-06-23T08:00:56","guid":{"rendered":"http:\/\/examples.javacodegeeks.com\/?p=38563"},"modified":"2019-04-23T14:43:04","modified_gmt":"2019-04-23T11:43:04","slug":"git-clone-repository-example","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/","title":{"rendered":"Git Clone Repository Example"},"content":{"rendered":"<p>In <code>Git<\/code>, <code>git clone<\/code> is a very important command. It can be understood by cloning or downloading a repository into a new directory from a remote server, like <code>Github<\/code>. It&#8217;s commonly used to connect to <code>Github<\/code>, based on knowing the project git link.<\/p>\n<h2>1. Introduction<\/h2>\n<p>In addition, <code>Git<\/code> has multiple different repositories that we need to pay attention to, like the local workspace, the index(stating area also), local repository and the remote repository. So we need to have a good understanding about all these repositories.<\/p>\n<p>In this article, I&#8217;ll explain some aspects of git clone repository and the common usage of the command. For other aspects of <code>Git<\/code>, you can check out my <a href=\"https:\/\/examples.javacodegeeks.com\/author\/jun-wu\/\">other articles on <code>Git<\/code><\/a>.<\/p>\n<p>All the examples below is shown in MacOS EI Capitan Version 10.11.5 and the Git version is 2.7.4.\n<\/p>\n<h2>2. Github settings and git installation<\/h2>\n<p>Before we go to the real examples, we need to install Git firstly. Also we want to have a Github account and set it up.<\/p>\n<p>To download Git, you can go to the <a href=\"https:\/\/git-scm.com\/downloads\">download webpage<\/a> and install it according to the operating system. It supports different operating systems: MacOS, Windows, Linux and Solaris.<\/p>\n<p><figure id=\"attachment_38577\" aria-describedby=\"caption-attachment-38577\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/git-download.jpg\"><img decoding=\"async\" class=\"wp-image-38577 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/git-download.jpg\" alt=\"git download\" width=\"860\" height=\"756\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/git-download.jpg 860w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/git-download-300x264.jpg 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/git-download-768x675.jpg 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><figcaption id=\"caption-attachment-38577\" class=\"wp-caption-text\">git download<\/figcaption><\/figure><\/p>\n<p>After the instruction for installation, you can check the <code>Git<\/code> version via command <code>git --version<\/code> in your terminal. Mine is like below after the version checking command:<\/p>\n<pre class=\"brush:bash\">WXMs-MacBook-Pro:~ WXM$ git --version\ngit version 2.7.4 (Apple Git-66)\n<\/pre>\n<p>Then you need to register your own account from the <a href=\"https:\/\/github.com\/\">webpage of Github<\/a>. Coming back to the <code>Github<\/code> settings. Open the terminal on your computer\/laptop. Then type the following command to make sure that Git knows your user name.<\/p>\n<pre class=\"brush:bash\">$ git config --global user.name \"YOUR NAME\"\n<\/pre>\n<p>After this, you need to associate your email address with your <code>Git<\/code> commit. You can use the following command in your terminal to connect them. Here, be sure that the email address is the one that you used for register the Github account.<\/p>\n<pre class=\"brush:bash\">$ git config --global user.email \"YOUR EMAIL ADDRESS\"\n<\/pre>\n<p>Next, you need to authenticate with <code>Github<\/code> from <code>Git<\/code>. When you want to connect <code>Github<\/code> from your <code>Git<\/code>, you need authentication from <code>Github<\/code>. Two methods could be chosen for this:<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<ul>\n<li>Clone with HTTPS: the detailed instructions could <a href=\"https:\/\/help.github.com\/articles\/which-remote-url-should-i-use\/#cloning-with-https-urls-recommended\">be found here<\/a><\/li>\n<li>Clone with SSH: the detailed instructions could <a href=\"https:\/\/help.github.com\/articles\/which-remote-url-should-i-use\/#cloning-with-ssh-urls\">be found here<\/a><\/li>\n<\/ul>\n<p>After all these steps, the <code>Github<\/code> settings are done. You can go to the further part.<\/p>\n<h2>3. git clone repository<\/h2>\n<h3>3.1 git clone command<\/h3>\n<p>As we mentioned in the beginning, <code>git clone<\/code> is a very important <code>git<\/code> command. Developers use it quite a lot to connect to <code>Github<\/code>.<\/p>\n<p>For example, you may be interested in the Datastax Java driver for NoSQL database Apache Cassandra. You can go to the <code>Github<\/code> link https:\/\/github.com\/datastax\/java-driver. Below is the figure to show how the command looks for this <code>Git<\/code> project.<\/p>\n<p><figure id=\"attachment_37132\" aria-describedby=\"caption-attachment-37132\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/java-driver.jpg\"><img decoding=\"async\" class=\"wp-image-37132 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/java-driver.jpg\" alt=\"java driver\" width=\"860\" height=\"500\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/java-driver.jpg 860w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/java-driver-300x174.jpg 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/java-driver-768x447.jpg 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><figcaption id=\"caption-attachment-37132\" class=\"wp-caption-text\">Datastax java driver git repository<\/figcaption><\/figure><\/p>\n<p>Furthermore, if you want to download it and work on this project on your own machine. You can use <code>git clone<\/code> command. To do this, you need to find the <code>git<\/code> link for this project. For this project, the <code>git<\/code> link is https:\/\/github.com\/datastax\/java-driver.git. The position of this link is below with blue part marked.<\/p>\n<p><figure id=\"attachment_37131\" aria-describedby=\"caption-attachment-37131\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-link.jpg\"><img decoding=\"async\" class=\"wp-image-37131 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-link.jpg\" alt=\"git link\" width=\"860\" height=\"128\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-link.jpg 860w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-link-300x45.jpg 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-link-768x114.jpg 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><figcaption id=\"caption-attachment-37131\" class=\"wp-caption-text\">Git link<\/figcaption><\/figure><\/p>\n<p>Then open your terminal and go to the directory that you want to save this project. Type command <code>git clone https:\/\/github.com\/datastax\/java-driver.git<\/code>. Then this will download the project to your local machine like below:<\/p>\n<p><figure id=\"attachment_37130\" aria-describedby=\"caption-attachment-37130\" style=\"width: 860px\" class=\"wp-caption alignnone\"><img decoding=\"async\" class=\"wp-image-37130 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-clone.jpg\" alt=\"git clone\" width=\"860\" height=\"209\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-clone.jpg 860w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-clone-300x73.jpg 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-clone-768x187.jpg 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><figcaption id=\"caption-attachment-37130\" class=\"wp-caption-text\">git clone<\/figcaption><\/figure><\/p>\n<p>Here, you should notice that all versions of the project have been downloaded to your local repository. With the usage of command <code>git branch -a<\/code>, you can get the list of all branches in this project. Similarly, you can see our example below:[ulp id=&#8217;pzgfvmZhgslwSymm&#8217;]<\/p>\n<p><figure id=\"attachment_37663\" aria-describedby=\"caption-attachment-37663\" style=\"width: 748px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-branches-list.jpg\"><img decoding=\"async\" class=\"wp-image-37663 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-branches-list.jpg\" alt=\"git branches list\" width=\"748\" height=\"1280\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-branches-list.jpg 748w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-branches-list-175x300.jpg 175w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-branches-list-598x1024.jpg 598w\" sizes=\"(max-width: 748px) 100vw, 748px\" \/><\/a><figcaption id=\"caption-attachment-37663\" class=\"wp-caption-text\">git branch list<\/figcaption><\/figure><\/p>\n<p>You may find there&#8217;s a star &#8220;*&#8221; before the the &#8220;3.0&#8221;. This means that the current header is pointing to version 3.0.<\/p>\n<p>In <code>Git<\/code>, branch is another name for version. You can switch to different branches with command <code>git branch<\/code>. For more information about the branches, go to my previous article on <a href=\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-branch-example\/?ref=dzone\">Git clone branch example<\/a>.<\/p>\n<h3>3.2. Git repositories<\/h3>\n<p>Another important part for <code>Git<\/code> is the <code>Git<\/code> repository.<\/p>\n<p>Firstly, we need to be familiar with the repository concepts. In <code>Git<\/code>, there will be three repositories or areas. If we consider the usage of Github, then we need to add another one with remote repository (normally this will be <code>Github<\/code>). To make it clear, we use the following flow to demonstrate how the this works:<\/p>\n<p><figure id=\"attachment_36668\" aria-describedby=\"caption-attachment-36668\" style=\"width: 603px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/gitflow.jpg\"><img decoding=\"async\" class=\"wp-image-36668 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/gitflow.jpg\" alt=\"gitflow\" width=\"603\" height=\"524\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/gitflow.jpg 603w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/gitflow-300x261.jpg 300w\" sizes=\"(max-width: 603px) 100vw, 603px\" \/><\/a><figcaption id=\"caption-attachment-36668\" class=\"wp-caption-text\">Git repository<\/figcaption><\/figure><\/p>\n<ul>\n<li>Workspace: it\u2019s the place where you see in your computer system, or the directory where you check out your files. Files in the workspace could be added to the Git by using <code>git add<\/code> command. Basically it could be any folders\/directories in your computer.<\/li>\n<li>Index: it\u2019s also called stating area. It\u2019s an invisible space where you can add files that you want to commit. To add commit, you can use <code>git commit<\/code> command.<\/li>\n<li>Local repository: it\u2019s also an invisible repository. Actually it\u2019s stored in the .git folder, which is hidden in the folder you created.<\/li>\n<li>Remote repository: this could be another computer. Or it could be the server of others, such as <code>Github<\/code>. And we can consider <code>Github<\/code> as a remote repository. To access to the remote repository, you can use the commands <code>git push<\/code> or <code>git pull\/clone<\/code>.<\/li>\n<\/ul>\n<h3>3.3 git clone repository<\/h3>\n<p>Finally, let&#8217;s go to the usage of <code>git clone repository<\/code>. Mostly, the usage is quite the same as <code>git clone<\/code>, with the git link followed.<\/p>\n<p>Furthermore, the git link works like a URL. This link contains information about the transport protocol, the address of the remote server and the path to the repository. Take the java driver like as an example: https:\/\/github.com\/datastax\/java-driver.git. https is the protocol, github.com is the remote server and datastax\/java-driver is the repository that you want to work on.<\/p>\n<p>In addition, you can also set up the ssh. Then you may use the links like ssh:\/\/[user@]host.xz[:port]\/path\/to\/repo.git\/. Also, for local repositories, they also support Git. You can use the syntax similar to \/path\/to\/repo.git\/.<\/p>\n<h2>4. Conclusion<\/h2>\n<p>In conclusion, command <code>git clone<\/code> is used for cloning repository from remote server. You can work in different repositories, like local repository and remote one.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Git, git clone is a very important command. It can be understood by cloning or downloading a repository into a new directory from a remote server, like Github. It&#8217;s commonly used to connect to Github, based on knowing the project git link. 1. Introduction In addition, Git has multiple different repositories that we need &hellip;<\/p>\n","protected":false},"author":73,"featured_media":27377,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1353],"tags":[1517],"class_list":["post-38563","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-git","tag-git-clone-repository"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Git Clone Repository Example - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"In Git, git clone is a very important command. It can be understood by cloning or downloading a repository into a new directory from a remote server, like\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git Clone Repository Example - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"In Git, git clone is a very important command. It can be understood by cloning or downloading a repository into a new directory from a remote server, like\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-23T08:00:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-23T11:43:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jun Wu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jun Wu\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/\"},\"author\":{\"name\":\"Jun Wu\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6593091dba631ca0f41c4ba4e7c97678\"},\"headline\":\"Git Clone Repository Example\",\"datePublished\":\"2016-06-23T08:00:56+00:00\",\"dateModified\":\"2019-04-23T11:43:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/\"},\"wordCount\":1010,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"keywords\":[\"Git clone repository\"],\"articleSection\":[\"Git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/\",\"name\":\"Git Clone Repository Example - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"datePublished\":\"2016-06-23T08:00:56+00:00\",\"dateModified\":\"2019-04-23T11:43:04+00:00\",\"description\":\"In Git, git clone is a very important command. It can be understood by cloning or downloading a repository into a new directory from a remote server, like\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Software Development\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/software-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Git\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/software-development\/git\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Git Clone Repository Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6593091dba631ca0f41c4ba4e7c97678\",\"name\":\"Jun Wu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/11\/Jun-Wu-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/11\/Jun-Wu-96x96.jpg\",\"caption\":\"Jun Wu\"},\"description\":\"Jun (Steven) Wu is a current Master student in Computer Science &amp; Engineering department of University of Nebraska Lincoln (Lincoln, NE, USA). His current interests focus on Programming Languages (Java, Python), Relational Database (MySQL), NoSQL Database (Apache Cassandra, MongoDB), and Computer Networks.\",\"sameAs\":[\"https:\/\/wuxiaomin98.wordpress.com\/\"],\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/jun-wu\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Git Clone Repository Example - Java Code Geeks","description":"In Git, git clone is a very important command. It can be understood by cloning or downloading a repository into a new directory from a remote server, like","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:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/","og_locale":"en_US","og_type":"article","og_title":"Git Clone Repository Example - Java Code Geeks","og_description":"In Git, git clone is a very important command. It can be understood by cloning or downloading a repository into a new directory from a remote server, like","og_url":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2016-06-23T08:00:56+00:00","article_modified_time":"2019-04-23T11:43:04+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","type":"image\/jpeg"}],"author":"Jun Wu","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Jun Wu","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/"},"author":{"name":"Jun Wu","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6593091dba631ca0f41c4ba4e7c97678"},"headline":"Git Clone Repository Example","datePublished":"2016-06-23T08:00:56+00:00","dateModified":"2019-04-23T11:43:04+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/"},"wordCount":1010,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","keywords":["Git clone repository"],"articleSection":["Git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/","url":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/","name":"Git Clone Repository Example - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","datePublished":"2016-06-23T08:00:56+00:00","dateModified":"2019-04-23T11:43:04+00:00","description":"In Git, git clone is a very important command. It can be understood by cloning or downloading a repository into a new directory from a remote server, like","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-clone-repository-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Software Development","item":"https:\/\/examples.javacodegeeks.com\/category\/software-development\/"},{"@type":"ListItem","position":3,"name":"Git","item":"https:\/\/examples.javacodegeeks.com\/category\/software-development\/git\/"},{"@type":"ListItem","position":4,"name":"Git Clone Repository Example"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6593091dba631ca0f41c4ba4e7c97678","name":"Jun Wu","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/11\/Jun-Wu-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/11\/Jun-Wu-96x96.jpg","caption":"Jun Wu"},"description":"Jun (Steven) Wu is a current Master student in Computer Science &amp; Engineering department of University of Nebraska Lincoln (Lincoln, NE, USA). His current interests focus on Programming Languages (Java, Python), Relational Database (MySQL), NoSQL Database (Apache Cassandra, MongoDB), and Computer Networks.","sameAs":["https:\/\/wuxiaomin98.wordpress.com\/"],"url":"https:\/\/examples.javacodegeeks.com\/author\/jun-wu\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/38563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/73"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=38563"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/38563\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/27377"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=38563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=38563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=38563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}