{"id":357792,"date":"2021-10-25T23:00:24","date_gmt":"2021-10-25T20:00:24","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-check-and-update-your-git-version\/"},"modified":"2021-10-25T23:00:24","modified_gmt":"2021-10-25T20:00:24","slug":"how-to-check-and-update-your-git-version","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-check-and-update-your-git-version\/","title":{"rendered":"#How to Check and Update Your Git Version"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a26bb758a67f\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a26bb758a67f\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-check-and-update-your-git-version\/#Check_Which_Version_of_Git_Youre_Using\" >Check Which Version of Git You\u2019re Using<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-check-and-update-your-git-version\/#How_to_Update_Git_on_Windows\" >How to Update Git on Windows<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-check-and-update-your-git-version\/#How_to_Update_Git_on_Mac\" >How to Update Git on Mac<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-check-and-update-your-git-version\/#How_to_Update_Git_on_Linux\" >How to Update Git on Linux<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to Check and Update Your Git Version&#8221;<\/strong><\/p>\n<div>\n<!-- UNCACHED CONTENT --><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage alignnone size-full wp-image-759896\" srcset=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/10\/git-logo-blue-background.jpg?width=398&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 400w, https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/10\/git-logo-blue-background.jpg?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 1200w\" sizes=\"auto, 400w, 1200w\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/10\/git-logo-blue-background.jpg?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Git logo on a blue background\" width=\"1200\" height=\"675\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Keeping your Git installation up to date is essential, as it gives you all the latest features, improvements, bug fixes, and more. Here\u2019s how to check which Git you\u2019re currently using, and how to update it to the latest version.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Check_Which_Version_of_Git_Youre_Using\"><\/span>Check Which Version of Git You\u2019re Using<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The command to check which version of Git you\u2019re using is the same on both Windows and Mac. To check your Git version, open <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/235101\/10-ways-to-open-the-command-prompt-in-windows-10\/\">Command Prompt (Windows),\u00a0Terminal (Mac), or the Linux terminal.<\/p>\n<p>Once open, run this command:<\/p>\n<pre>git --version<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-759322\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/10\/Run-the-command-to-check-your-version-of-Git..png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Run the command to check your version of Git.\" width=\"413\" height=\"168\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The Git version you\u2019re currently using will be returned.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-759323\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/10\/Your-Git-version..png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Your Git version.\" width=\"400\" height=\"170\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Now that you know which version of Git you\u2019re using, you can decide if you want to update it or not.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"How_to_Update_Git_on_Windows\"><\/span><a rel=\"nofollow noopener\" target=\"_blank\" name=\"autotoc_anchor_1\">How to Update Git on Windows<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The command you use to update Git on Windows depends on which version of Git you\u2019re currently using. If you\u2019re using any version from 2.14.2 to 2.16.1, then run this command in Command Prompt:<\/p>\n<pre>git update<\/pre>\n<p>If you\u2019re using any version after 2.16.1, then you\u2019ll need to run this command instead:<\/p>\n<pre>git update-git-for-windows<\/pre>\n<p>Regardless of which command you need to use, your Git version will update or you\u2019ll get a message saying you\u2019re up to date if you\u2019re already using the latest version.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-759325\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/10\/The-command-to-update-Git-on-Windows-and-the-success-message..png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The command to update Git on Windows and the success message.\" width=\"403\" height=\"138\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>If you\u2019re using a version older than 2.14.2, then you\u2019ll need to get the latest installer from the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/git-scm.com\/download\">download portal<\/a>\u00a0and update your Git version the same way as when you installed Git for the first time.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"How_to_Update_Git_on_Mac\"><\/span><a rel=\"nofollow noopener\" target=\"_blank\" name=\"autotoc_anchor_2\">How to Update Git on Mac<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You can update Git from Terminal on Mac using <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/brew.sh\/\">Homebrew<\/a>, a popular package manager for Mac. It\u2019s likely you already have Homebrew installed if you\u2019re using Git on your Mac, but if not, you can install Homebrew by running this command and then following the instructions in Terminal:<\/p>\n<pre>\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/pre>\n<p>With Homebrew installed, run this command from Terminal to update Git:<\/p>\n<pre>brew upgrade git<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-759327\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/10\/Command-to-update-Git-on-Mac..png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Command to update Git on Mac.\" width=\"607\" height=\"221\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>If you aren\u2019t using the latest version of Homebrew, then Homebrew will update first. Once finished, Git will update.<\/p>\n<p>Alternatively, you can go to Git\u2019s <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/git-scm.com\/downloads\">download portal<\/a> and get the latest installer.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"How_to_Update_Git_on_Linux\"><\/span>How to Update Git on Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you\u2019re running Git on Linux, Git will automatically update whenever you apply a system update. If you\u2019re not sure how to do this, check out our guides to <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/740795\/how-to-update-ubuntu-linux\/\">updating Ubuntu and updating Arch Linux.<\/p>\n<hr\/>\n<p>There are so many cool things you can do with Git, like installing software or cloning a GitHub repo to work on a project. Keeping Git up to date will ensure you always have the latest features Git has to offer.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Install Software Using Git on Linux<\/em><\/strong><\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/759319\/how-to-check-and-update-your-git-version\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Check and Update Your Git Version&#8221; Keeping your Git installation up to date is essential, as it gives you all the latest features, improvements, bug fixes, and more. Here\u2019s how to check which Git you\u2019re currently using, and how to update it to the latest version. Check Which Version of Git You\u2019re Using&#8230;<\/p>\n","protected":false},"author":1,"featured_media":357793,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/10\/git-logo-blue-background.jpg?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-357792","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/357792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=357792"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/357792\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/357793"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=357792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=357792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=357792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}