{"id":39422,"date":"2016-07-26T11:00:59","date_gmt":"2016-07-26T08:00:59","guid":{"rendered":"http:\/\/examples.javacodegeeks.com\/?p=39422"},"modified":"2019-04-23T14:26:00","modified_gmt":"2019-04-23T11:26:00","slug":"use-git-bash","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/","title":{"rendered":"How to Use Git Bash"},"content":{"rendered":"<p>Recently, <code>Git<\/code> has been widely used among software engineers. It is not only free, but is also open-source. In addition, it\u2019s powerful for its distributed nature, fast operation and branch handling mechanism. The distributed property makes it easy and efficient for multiple developers to work together. And this is very useful for group project. Meanwhile, <code>Git<\/code> works fast with its lightweight operations. Lastly, every developer can work with the code as its own branch. Others can merge different branches. Thus, this makes cooperation-work quite easy.<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;\n<\/p>\n<h2>1. Introduction<\/h2>\n<p>In the meanwhile, <code>Bash<\/code> is a very popular shell. It stands for <code>Bourne Again Shell<\/code>. A shell is a user interface to access to an operating system&#8217;s services. And it&#8217;s also called command-line interpreter. Basically, <code>shell<\/code> could be a connection between engineers and operating system. Specifically, we can use commands to access or modify files in operating systems.<\/p>\n<p>In this article, I&#8217;ll introduce how to combine these two together. More specifically, I&#8217;ll focus on how to set both up and make them work. Furthermore, we know that in Unix-like OS and MacOS,&nbsp;<code>Bash<\/code> is the default shell. So in this article, I&#8217;ll emphasize on Windows system.<\/p>\n<p>Below, all the operations are in Windows 10 and <code>Git<\/code> 2.9.2 version.<\/p>\n<h2>2. Git Bash installations and settings<\/h2>\n<p>First of all, we know that it&#8217;s relatively hard to use command in Windows system. This could be painful for software developers. In Windows, there&#8217;s a cmd window, which is similar to the terminal in Unix-like system. However, as I mentioned, it does not support commands. For example, the list ls command like below:<\/p>\n<p><figure id=\"attachment_39485\" aria-describedby=\"caption-attachment-39485\" style=\"width: 749px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-bad.jpg\"><img decoding=\"async\" class=\"wp-image-39485 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-bad.jpg\" alt=\"Git bad\" width=\"749\" height=\"124\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-bad.jpg 749w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-bad-300x50.jpg 300w\" sizes=\"(max-width: 749px) 100vw, 749px\" \/><\/a><figcaption id=\"caption-attachment-39485\" class=\"wp-caption-text\">ls command not supported<\/figcaption><\/figure><\/p>\n<p>However, things could change. We can use the <code>Git bash<\/code>, which supports both the <code>Git<\/code> and the bash shell.<\/p>\n<h3>2.1 Git Bash installation<\/h3>\n<p>Primarily, we need to download the <code>Git<\/code>. Go to the link of <a href=\"https:\/\/git-for-windows.github.io\/\">https:\/\/git-for-windows.github.io\/<\/a>. Then download it, as shown below:<\/p>\n<p><figure id=\"attachment_39488\" aria-describedby=\"caption-attachment-39488\" style=\"width: 847px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-download.jpg\"><img decoding=\"async\" class=\"wp-image-39488 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-download.jpg\" alt=\"Git download\" width=\"847\" height=\"507\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-download.jpg 847w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-download-300x180.jpg 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-download-768x460.jpg 768w\" sizes=\"(max-width: 847px) 100vw, 847px\" \/><\/a><figcaption id=\"caption-attachment-39488\" class=\"wp-caption-text\">Git download<\/figcaption><\/figure><div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>After downloading, you need&nbsp;to install it.<\/p>\n<p><figure id=\"attachment_39487\" aria-describedby=\"caption-attachment-39487\" style=\"width: 577px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-installation.jpg\"><img decoding=\"async\" class=\"wp-image-39487 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-installation.jpg\" alt=\"Git installation\" width=\"577\" height=\"473\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-installation.jpg 577w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-installation-300x246.jpg 300w\" sizes=\"(max-width: 577px) 100vw, 577px\" \/><\/a><figcaption id=\"caption-attachment-39487\" class=\"wp-caption-text\">Git installation<\/figcaption><\/figure><\/p>\n<p>During the installation, make sure that you check one option &#8211; the <code>Git Bash<\/code> like below:<\/p>\n<p><figure id=\"attachment_39486\" aria-describedby=\"caption-attachment-39486\" style=\"width: 578px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-installation-2.jpg\"><img decoding=\"async\" class=\"wp-image-39486 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-installation-2.jpg\" alt=\"Git installation 2\" width=\"578\" height=\"469\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-installation-2.jpg 578w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-installation-2-300x243.jpg 300w\" sizes=\"(max-width: 578px) 100vw, 578px\" \/><\/a><figcaption id=\"caption-attachment-39486\" class=\"wp-caption-text\">Git installation<\/figcaption><\/figure><\/p>\n<p>After successful installation, you can&nbsp;check out the software and find the <code>Git Bash<\/code> like below:<\/p>\n<p><figure id=\"attachment_39483\" aria-describedby=\"caption-attachment-39483\" style=\"width: 324px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Windows-software.jpg\"><img decoding=\"async\" class=\"wp-image-39483 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Windows-software.jpg\" alt=\"Windows software\" width=\"324\" height=\"728\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Windows-software.jpg 324w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Windows-software-134x300.jpg 134w\" sizes=\"(max-width: 324px) 100vw, 324px\" \/><\/a><figcaption id=\"caption-attachment-39483\" class=\"wp-caption-text\">Git in windows<\/figcaption><\/figure><\/p>\n<p>Then click the <code>Git Bash<\/code>, &nbsp;and start a bash shell integrated with <code>Git<\/code>. This could be really awesome to start working on. Here, you might want to check out whether it&#8217;s done with command <code>git --version<\/code>.<\/p>\n<pre class=\"brush:bash\">$ git --version\ngit version 2.9.2.windows.1\n<\/pre>\n<h3>2.2 Git Bash setting<\/h3>\n<p>Next, you need to set up the <code>Git Bash<\/code> with your <code>Github<\/code> account. Make sure you have registered one for yourself.<\/p>\n<p>After registration, open the <code>Git Bash<\/code> window. This is used for setting up the global parameters. In addition, this will connect your local repository with remote repository &#8211; <code>Github<\/code>.<\/p>\n<p>In the <code>Bash<\/code>, type following command:<\/p>\n<pre class=\"brush:bash\">$ git config --global user.name \"username\"\n<\/pre>\n<p>In the quote, replace the username with your real <code>Github<\/code> user name.<\/p>\n<p>Then, input another command:<\/p>\n<pre class=\"brush:bash\">$ git config --global user.email \"useremail\"\n<\/pre>\n<p>Similarly, replace the user email with your real <code>Github<\/code> email. That&#8217;s it, all&nbsp;settings are done![ulp id=&#8217;pzgfvmZhgslwSymm&#8217;]<\/p>\n<h2>3. Git Bash usage<\/h2>\n<h3>3.1 Git Bash in Windows<\/h3>\n<p>After the previous installation and settings, you can start working on the real <code>Git<\/code> project. For example, right now you are able to&nbsp;use the command like in Unix-like system.<\/p>\n<p><figure id=\"attachment_39484\" aria-describedby=\"caption-attachment-39484\" style=\"width: 606px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-bash.jpg\"><img decoding=\"async\" class=\"wp-image-39484 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-bash.jpg\" alt=\"Git bash\" width=\"606\" height=\"176\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-bash.jpg 606w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/Git-bash-300x87.jpg 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/a><figcaption id=\"caption-attachment-39484\" class=\"wp-caption-text\">Git bash<\/figcaption><\/figure><\/p>\n<p>In addition, you can use other popular commands, like cd, mkdir, rm etc. All these commands are supported in <code>Git Bash<\/code> now. For further&nbsp;commands, you may refer to the link: <a href=\"http:\/\/ss64.com\/bash\/\">http:\/\/ss64.com\/bash\/<\/a><\/p>\n<p>Meanwhile, <code>Git Bash<\/code> also supports <code>Git<\/code> operation. For example, you might want to use <code>git clone<\/code> to clone a project from <code>Github<\/code>.<\/p>\n<p><figure id=\"attachment_39481\" aria-describedby=\"caption-attachment-39481\" style=\"width: 561px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/git-clone.jpg\"><img decoding=\"async\" class=\"wp-image-39481 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/git-clone.jpg\" alt=\"git clone\" width=\"561\" height=\"112\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/git-clone.jpg 561w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/git-clone-300x60.jpg 300w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/a><figcaption id=\"caption-attachment-39481\" class=\"wp-caption-text\">git clone<\/figcaption><\/figure><\/p>\n<p>Here, &nbsp;notice that in the command, it&#8217;s better to type the whole command, instead of copying. I encountered an error when I was copying the link directly to the bash. It&#8217;s like below:<\/p>\n<p><figure id=\"attachment_39482\" aria-describedby=\"caption-attachment-39482\" style=\"width: 524px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/git-clone-bad.jpg\"><img decoding=\"async\" class=\"wp-image-39482 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/git-clone-bad.jpg\" alt=\"git clone bad\" width=\"524\" height=\"67\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/git-clone-bad.jpg 524w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/git-clone-bad-300x38.jpg 300w\" sizes=\"(max-width: 524px) 100vw, 524px\" \/><\/a><figcaption id=\"caption-attachment-39482\" class=\"wp-caption-text\">git clone bad<\/figcaption><\/figure><\/p>\n<p>In addition, you can try more <code>Git<\/code> operations like below:<\/p>\n<p><figure id=\"attachment_39480\" aria-describedby=\"caption-attachment-39480\" style=\"width: 530px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/git-command.jpg\"><img decoding=\"async\" class=\"wp-image-39480 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/git-command.jpg\" alt=\"git command\" width=\"530\" height=\"263\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/git-command.jpg 530w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/07\/git-command-300x149.jpg 300w\" sizes=\"(max-width: 530px) 100vw, 530px\" \/><\/a><figcaption id=\"caption-attachment-39480\" class=\"wp-caption-text\">git command<\/figcaption><\/figure><\/p>\n<p>For additional&nbsp;<code>Git<\/code> operations, you may refer to one of my previous article. The link is <a href=\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-tutorial-beginners\/\">Git tutorial for beginners<\/a>.<\/p>\n<h3>3.1 Git Bash in Mac\/Unix<\/h3>\n<p>As I mentioned before, bash is the default shell for both MacOS and Unix-like system. You can check this by typing the following command:<\/p>\n<pre class=\"brush:bash\">WXMs-MacBook-Pro:~ WXM$ echo $SHELL\n\/bin\/bash\n<\/pre>\n<p>Also, you can check all the shells that your OS supports.<\/p>\n<pre class=\"brush:bash\">WXMs-MacBook-Pro:~ WXM$ cd \/bin\/\nWXMs-MacBook-Pro:bin WXM$ ls\n[\t\tdf\t\tlaunchctl\tpwd\t\ttcsh\nbash\t\tdomainname\tlink\t\trcp\t\ttest\ncat\t\techo\t\tln\t\trm\t\tunlink\nchmod\t\ted\t\tls\t\trmdir\t\twait4path\ncp\t\texpr\t\tmkdir\t\tsh\t\tzsh\ncsh\t\thostname\tmv\t\tsleep\ndate\t\tkill\t\tpax\t\tstty\ndd\t\tksh\t\tps\t\tsync\n<\/pre>\n<p>And, you can find other shells, like csh, sh, zsh, tcsh etc.<\/p>\n<h2>3. Conclusion<\/h2>\n<p>In conclusion, <code>Git Bash<\/code> is very useful for developers to work in Windows environment. This article explained the basic installation and settings for <code>Git Bash<\/code>. Furthermode, it is also explained &nbsp;<code>Github<\/code> configuration. Happy <code>Git<\/code>:)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, Git has been widely used among software engineers. It is not only free, but is also open-source. In addition, it\u2019s powerful for its distributed nature, fast operation and branch handling mechanism. The distributed property makes it easy and efficient for multiple developers to work together. And this is very useful for group project. Meanwhile, &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":[1535],"class_list":["post-39422","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-git","tag-git-bash"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Use Git Bash - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Recently, Git has been widely used among software engineers. It is not only free, but is also open-source. In addition, it\u2019s powerful for its distributed\" \/>\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\/use-git-bash\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use Git Bash - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Recently, Git has been widely used among software engineers. It is not only free, but is also open-source. In addition, it\u2019s powerful for its distributed\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/\" \/>\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-07-26T08:00:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-23T11:26:00+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=\"4 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\/use-git-bash\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/\"},\"author\":{\"name\":\"Jun Wu\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6593091dba631ca0f41c4ba4e7c97678\"},\"headline\":\"How to Use Git Bash\",\"datePublished\":\"2016-07-26T08:00:59+00:00\",\"dateModified\":\"2019-04-23T11:26:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/\"},\"wordCount\":786,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"keywords\":[\"Git bash\"],\"articleSection\":[\"Git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/\",\"name\":\"How to Use Git Bash - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"datePublished\":\"2016-07-26T08:00:59+00:00\",\"dateModified\":\"2019-04-23T11:26:00+00:00\",\"description\":\"Recently, Git has been widely used among software engineers. It is not only free, but is also open-source. In addition, it\u2019s powerful for its distributed\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/#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\/use-git-bash\/#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\":\"How to Use Git Bash\"}]},{\"@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":"How to Use Git Bash - Java Code Geeks","description":"Recently, Git has been widely used among software engineers. It is not only free, but is also open-source. In addition, it\u2019s powerful for its distributed","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\/use-git-bash\/","og_locale":"en_US","og_type":"article","og_title":"How to Use Git Bash - Java Code Geeks","og_description":"Recently, Git has been widely used among software engineers. It is not only free, but is also open-source. In addition, it\u2019s powerful for its distributed","og_url":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2016-07-26T08:00:59+00:00","article_modified_time":"2019-04-23T11:26:00+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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/"},"author":{"name":"Jun Wu","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6593091dba631ca0f41c4ba4e7c97678"},"headline":"How to Use Git Bash","datePublished":"2016-07-26T08:00:59+00:00","dateModified":"2019-04-23T11:26:00+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/"},"wordCount":786,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","keywords":["Git bash"],"articleSection":["Git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/","url":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/","name":"How to Use Git Bash - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","datePublished":"2016-07-26T08:00:59+00:00","dateModified":"2019-04-23T11:26:00+00:00","description":"Recently, Git has been widely used among software engineers. It is not only free, but is also open-source. In addition, it\u2019s powerful for its distributed","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/use-git-bash\/#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\/use-git-bash\/#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":"How to Use Git Bash"}]},{"@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\/39422","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=39422"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/39422\/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=39422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=39422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=39422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}