{"id":37115,"date":"2016-05-13T11:00:31","date_gmt":"2016-05-13T08:00:31","guid":{"rendered":"http:\/\/examples.javacodegeeks.com\/?p=37115"},"modified":"2019-04-23T14:47:15","modified_gmt":"2019-04-23T11:47:15","slug":"create-git-repo-example","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/","title":{"rendered":"Create Git Repo Example"},"content":{"rendered":"<h2>1. Introduction<\/h2>\n<p><code>Git<\/code> coming back again:) This time I&#8217;ll introduce how to create <code>Git<\/code> repository(repo for short). In my <a href=\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-tutorial-beginners\/\">previous post on Git Tutorial for Beginners<\/a>, I&#8217;ve explained some basic <code>Git<\/code> operations\/commands, which briefly includes how to create <code>Git<\/code> repo. In this article, we&#8217;ll go to the process step by step and see how to create <code>Git<\/code> repository from the very beginning.<\/p>\n<p>All the examples below is shown in MacOS EI Capitan Version 10.11.3 and the Git version is 2.5.4.<br \/>\n&nbsp;<br \/>\n&nbsp;\n<\/p>\n<h2>2. Git installation<\/h2>\n<p>Before we want to use <code>Git<\/code>, we should install <code>Git<\/code> at least. Luckily we have tons of materials telling us how to install <code>Git<\/code>. Basically, we have two ways to install <code>Git<\/code>:<\/p>\n<ul>\n<li>Command line:&nbsp;For different operating systems, different command line may be used in terminal\/command line. For example, for CentOS, <code>sudo yum install git-all<\/code> could install <code>Git<\/code> successfully. If you want to check out solutions for other operating systems, you may find answers in the&nbsp;<a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Getting-Started-Installing-Git\">tutorial here.<\/a><\/li>\n<li>Package\/executable file: A more direct way could be downloading the executable package\/file and install it by double click the package\/file. The&nbsp;<code>Git<\/code>&nbsp;community provides information for different systems, such as MacOS, Windows, Linux and Solaris.&nbsp;For different&nbsp;packages downloading options, you can refer to the&nbsp;<a href=\"https:\/\/git-scm.com\/downloads\">link here<\/a>. Following the instructions, you can successfully install <code>Git<\/code>. You may find it very user-friendly, as it provides GUI functions.<\/li>\n<\/ul>\n<p>To make sure we&#8217;ve created the <code>Git<\/code> successfully, we may use the terminal to check it. Open a terminal in your computer and type <code>git --version<\/code>. It&#8217;ll show the current version of the <code>Git<\/code> you&#8217;re using. For example, I&#8217;ve tested this on my own computer and it shows:<\/p>\n<pre class=\"brush:bash\">WXMs-MacBook-Pro:~ WXM$ git --version\ngit version 2.7.4 (Apple Git-66)\n<\/pre>\n<p>If you can see the version of <code>Git<\/code>, that means you&#8217;ve make <code>Git<\/code> installed.<\/p>\n<h2>3. Git repository<\/h2>\n<p>After successfully installing <code>Git<\/code>, the tool we need is ready. Then we shall come to understand different <code>Git<\/code> repositories. Basically there&#8217;ll be three different <code>Git<\/code> repositories: work space, index, local repository. In addition, if we consider the usage of <code>Github<\/code>, then we may consider another one: remote repository.<\/p>\n<p>The figure below will have a clear show on these repositories:<\/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 repositories<\/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 in your computer.<\/li>\n<li>Index: it\u2019s also called staging 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 Github, which we can consider it as a remote repository. To access to the remote repository, <code>git push<\/code> or <code>git pull<\/code> could be used.<\/li>\n<\/ul>\n<h2>4. Create Git repository<\/h2>\n<p>Then I&#8217;ll show you step by step on how to create a <code>Git<\/code> repository.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>Basically there&#8217;ll be three ways to create a <code>Git<\/code> repository. You may create an empty <code>Git<\/code> repository from scratch. Or you may use existed project to create a <code>Git<\/code> repository. Or you may want to clone a project from <code>Github<\/code>.<\/p>\n<h3>4.1 Create Git repository from empty project<\/h3>\n<p>Below I&#8217;ll show you how to create an empty <code>Git<\/code> repository from scratch.<\/p>\n<p>First of all, we need to create an empty folder Git_repository like below. This is used for the <code>Git<\/code> repository, you can consider it as a container for your <code>Git<\/code> project.<\/p>\n<p><figure id=\"attachment_37123\" aria-describedby=\"caption-attachment-37123\" style=\"width: 838px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-empty-repo.jpg\"><img decoding=\"async\" class=\"wp-image-37123 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-empty-repo.jpg\" alt=\"git empty repo\" width=\"838\" height=\"262\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-empty-repo.jpg 838w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-empty-repo-300x94.jpg 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-empty-repo-768x240.jpg 768w\" sizes=\"(max-width: 838px) 100vw, 838px\" \/><\/a><figcaption id=\"caption-attachment-37123\" class=\"wp-caption-text\">Git empty repo<\/figcaption><\/figure><\/p>\n<p>Then go to the Git_repository folder and type the command <code>git init<\/code> in the terminal. This command is used to create an empty <code>Git<\/code> repository, which contains all the necessary repository files &#8211; a <code>Git<\/code> repository skeleton. It will show the result after running the command like below:<\/p>\n<p><figure id=\"attachment_37136\" aria-describedby=\"caption-attachment-37136\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-init.jpg\"><img decoding=\"async\" class=\"wp-image-37136 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-init.jpg\" alt=\"git init\" width=\"860\" height=\"245\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-init.jpg 860w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-init-300x85.jpg 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-init-768x219.jpg 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><figcaption id=\"caption-attachment-37136\" class=\"wp-caption-text\">git init<\/figcaption><\/figure><\/p>\n<p>You may notice that, when we use <code>ls<\/code> command to show the files in the folder, it shows nothing. However, it&#8217;s not true on this. Actually there&#8217;s a hidden folder called .git which has been created. To show this, we may use the <code>ls -ah<\/code> command to make the hidden file visible like below:<\/p>\n<p><figure id=\"attachment_37135\" aria-describedby=\"caption-attachment-37135\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-ls.jpg\"><img decoding=\"async\" class=\"wp-image-37135 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-ls.jpg\" alt=\"git ls\" width=\"860\" height=\"284\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-ls.jpg 860w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-ls-300x99.jpg 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-ls-768x254.jpg 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><figcaption id=\"caption-attachment-37135\" class=\"wp-caption-text\">git ls<\/figcaption><\/figure><\/p>\n<p>Then you can add files into the repository as you wish. For example, you may add a README file to the staging area, with <code>git add<\/code> command and commit it to local repository, with <code>git commit<\/code> command.[ulp id=&#8217;pzgfvmZhgslwSymm&#8217;]<\/p>\n<p><figure id=\"attachment_37134\" aria-describedby=\"caption-attachment-37134\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-add-commit.jpg\"><img decoding=\"async\" class=\"wp-image-37134 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-add-commit.jpg\" alt=\"git add commit\" width=\"860\" height=\"406\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-add-commit.jpg 860w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-add-commit-300x142.jpg 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-add-commit-768x363.jpg 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><figcaption id=\"caption-attachment-37134\" class=\"wp-caption-text\">git add and commit<\/figcaption><\/figure><\/p>\n<p>In addition, you may use <code>git status<\/code> command to check the status of the repository like below:<\/p>\n<p><figure id=\"attachment_37133\" aria-describedby=\"caption-attachment-37133\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-status.jpg\"><img decoding=\"async\" class=\"wp-image-37133 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-status.jpg\" alt=\"git status\" width=\"860\" height=\"463\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-status.jpg 860w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-status-300x162.jpg 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-status-768x413.jpg 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><figcaption id=\"caption-attachment-37133\" class=\"wp-caption-text\">git status<\/figcaption><\/figure><\/p>\n<p>For more operations\/commands on <code>Git<\/code>, go and refer to my <a href=\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-tutorial-beginners\/\">previous post<\/a>.<\/p>\n<h3>4.2 Create Git repository from existed project<\/h3>\n<p>The main difference between this method and first one, lies just in whether we need to create an project or not. Basically you may go to any folder in your computer and in the terminal, type <code>git init<\/code>. This will make this folder a <code>Git<\/code> repository. You can have further operations on this folder like above.<\/p>\n<h3>4.3 Create Git repository from remote directory<\/h3>\n<p>To create a repository from remote directory, basically you need to have a <code>Github<\/code> account. Then you need to connect your local computer with the <code>Github<\/code> account. For the detailed information on this, you may check out the <a href=\"https:\/\/guides.github.com\/introduction\/getting-your-project-on-github\/\">post here<\/a>.<\/p>\n<p>After you&#8217;ve setting up your <code>Github<\/code> account, you may pull or push different projects from <code>Github<\/code>. Here, we introduce how to pull\/download a project from <code>Github<\/code>.<\/p>\n<p>Firstly, you need to check out the projects that may interest you. You can find many useful and interesting projects on <code>Github<\/code>. For example, you may be interested in the java driver for Apache Cassandra. You can go to the <code>Github<\/code> link https:\/\/github.com\/datastax\/java-driver. Below is the figure to show how it 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<\/figcaption><\/figure><\/p>\n<p>Then if you want to download it and work on this project on your local 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 and you can copy it.<\/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 you terminal and go to the position you want to save this project. Type <code>git clone https:\/\/github.com\/datastax\/java-driver.git<\/code>. Then it&#8217;ll download this 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 aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/05\/git-clone.jpg\"><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\" \/><\/a><figcaption id=\"caption-attachment-37130\" class=\"wp-caption-text\">git clone<\/figcaption><\/figure><\/p>\n<h2>4. Conclusion<\/h2>\n<p>In this article, we&#8217;ve explained how to create <code>Git<\/code> repository. Three different methods could be used: create an empty <code>Git<\/code> repository, create a <code>Git<\/code> repository from existed project and create a <code>Git<\/code> repository from remote repository.<\/p>\n<p>In addition, two important commands should be useful for repository creation: <code>git init<\/code> and <code>git clone<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Introduction Git coming back again:) This time I&#8217;ll introduce how to create Git repository(repo for short). In my previous post on Git Tutorial for Beginners, I&#8217;ve explained some basic Git operations\/commands, which briefly includes how to create Git repo. In this article, we&#8217;ll go to the process step by step and see how to &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":[1473],"class_list":["post-37115","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-git","tag-git-repo"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create Git Repo Example - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"1. Introduction Git coming back again:) This time I&#039;ll introduce how to create Git repository(repo for short). In my previous post on Git Tutorial for\" \/>\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\/create-git-repo-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Git Repo Example - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"1. Introduction Git coming back again:) This time I&#039;ll introduce how to create Git repository(repo for short). In my previous post on Git Tutorial for\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-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-05-13T08:00:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-23T11:47:15+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=\"6 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\/create-git-repo-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/\"},\"author\":{\"name\":\"Jun Wu\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6593091dba631ca0f41c4ba4e7c97678\"},\"headline\":\"Create Git Repo Example\",\"datePublished\":\"2016-05-13T08:00:31+00:00\",\"dateModified\":\"2019-04-23T11:47:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/\"},\"wordCount\":1149,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"keywords\":[\"Git repo\"],\"articleSection\":[\"Git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/\",\"name\":\"Create Git Repo Example - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"datePublished\":\"2016-05-13T08:00:31+00:00\",\"dateModified\":\"2019-04-23T11:47:15+00:00\",\"description\":\"1. Introduction Git coming back again:) This time I'll introduce how to create Git repository(repo for short). In my previous post on Git Tutorial for\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-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\/create-git-repo-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\":\"Create Git Repo 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":"Create Git Repo Example - Java Code Geeks","description":"1. Introduction Git coming back again:) This time I'll introduce how to create Git repository(repo for short). In my previous post on Git Tutorial for","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\/create-git-repo-example\/","og_locale":"en_US","og_type":"article","og_title":"Create Git Repo Example - Java Code Geeks","og_description":"1. Introduction Git coming back again:) This time I'll introduce how to create Git repository(repo for short). In my previous post on Git Tutorial for","og_url":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2016-05-13T08:00:31+00:00","article_modified_time":"2019-04-23T11:47:15+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":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/"},"author":{"name":"Jun Wu","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6593091dba631ca0f41c4ba4e7c97678"},"headline":"Create Git Repo Example","datePublished":"2016-05-13T08:00:31+00:00","dateModified":"2019-04-23T11:47:15+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/"},"wordCount":1149,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","keywords":["Git repo"],"articleSection":["Git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/","url":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/","name":"Create Git Repo Example - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","datePublished":"2016-05-13T08:00:31+00:00","dateModified":"2019-04-23T11:47:15+00:00","description":"1. Introduction Git coming back again:) This time I'll introduce how to create Git repository(repo for short). In my previous post on Git Tutorial for","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/create-git-repo-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\/create-git-repo-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":"Create Git Repo 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\/37115","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=37115"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/37115\/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=37115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=37115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=37115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}