{"id":9373,"date":"2021-01-07T09:40:23","date_gmt":"2021-01-07T14:40:23","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=9373"},"modified":"2021-12-04T06:30:15","modified_gmt":"2021-12-04T06:30:15","slug":"install-git-ubuntu-20-04","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/","title":{"rendered":"How to Install Git on Ubuntu 20.04 | 18.04 With Examples"},"content":{"rendered":"\n

In this simple guide, we show you how to install Git on Ubuntu 20.04 with practical examples from default reps as well as the PPA sources.<\/p>\n\n\n\n

Git is a distributed version control system for tracking changes in any file. It is a popular system among programmers to help in coordinating work through cooperation on source code throughout the software development process. This results in speed, data integrity, and support for distributed, non-linear workflows.<\/p>\n\n\n\n

You can always install Git packages from the default apt repositories. This may be okay unless you want the latest version available.<\/p>\n\n\n\n

The Git core team also maintains a PPA<\/a> with the latest git Debian<\/a> packages. You can add this PPA to your system is you need to install and maintain the latest Git version.<\/p>\n\n\n\n

Install Git on Ubuntu 20.04<\/h2>\n\n\n\n

Use the following steps to install Git on Ubuntu 20.04 or older versions.<\/p>\n\n\n\n

  1. First, install software-properties-common<\/strong><\/em> package on your system if it is not yet installed.<\/li><\/ol>\n\n\n\n
    $ sudo apt install software-properties-common -y<\/code><\/pre>\n\n\n\n
    1. Add the Git-core PPA to your system using the following command:<\/li><\/ol>\n\n\n\n
      $ sudo add-apt-repository ppa:git-core\/ppa\n$ sudo apt update<\/code><\/pre>\n\n\n\n
      1. Next, install git package on your system using the following command:<\/li><\/ol>\n\n\n\n
        $ sudo apt install git -y<\/code><\/pre>\n\n\n\n

        Git has been installed on your Ubuntu<\/a> system.<\/p>\n\n\n\n

        Additional Steps<\/h2>\n\n\n\n

        We will have to do some post-install setup to get things running more efficiently.<\/p>\n\n\n\n

        We will set up the Git user details on your Ubuntu system that will be used as your identity by repository providers such as GitHub, GitLab, and others. We will be setting the name and email address. This can be done by running the two commands as shown below using your preferred name and email.<\/p>\n\n\n\n

        $ git config --gloabl user.name "Example User"\n$ git config --gloabl user.email "git.user@example.com"<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"

        In this simple guide, we show you how to install Git on Ubuntu 20.04 with practical examples from default reps as well as the PPA sources. Git is a distributed…<\/p>\n","protected":false},"author":1,"featured_media":9374,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,9,28,16,18],"tags":[142,183,193,354,471,544,573,598],"yoast_head":"\nHow to Install Git on Ubuntu 20.04 | 18.04 With Examples<\/title>\n<meta name=\"description\" content=\"In this simple guide we show you how to install Git on Ubuntu 20.04 with practical examples from default reps as well as the ppa sources\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Git on Ubuntu 20.04 | 18.04 With Examples\" \/>\n<meta property=\"og:description\" content=\"In this simple guide we show you how to install Git on Ubuntu 20.04 with practical examples from default reps as well as the ppa sources\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Brightwhiz.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/brightwhiz\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-07T14:40:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-04T06:30:15+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-git-ubuntu.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Michael Bright\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:site\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Bright\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/\"},\"author\":{\"name\":\"Michael Bright\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\"},\"headline\":\"How to Install Git on Ubuntu 20.04 | 18.04 With Examples\",\"datePublished\":\"2021-01-07T14:40:23+00:00\",\"dateModified\":\"2021-12-04T06:30:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/\"},\"wordCount\":265,\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-git-ubuntu.png\",\"keywords\":[\"Community\",\"Debian\",\"DevOps\",\"Linux\",\"Programming\",\"Software development\",\"Systems Administration\",\"Ubuntu\"],\"articleSection\":[\"Articles\",\"Guides\",\"How To\",\"Software\",\"Technology\",\"Tools\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/\",\"url\":\"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/\",\"name\":\"How to Install Git on Ubuntu 20.04 | 18.04 With Examples\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-git-ubuntu.png\",\"datePublished\":\"2021-01-07T14:40:23+00:00\",\"dateModified\":\"2021-12-04T06:30:15+00:00\",\"description\":\"In this simple guide we show you how to install Git on Ubuntu 20.04 with practical examples from default reps as well as the ppa sources\",\"breadcrumb\":{\"@id\":\"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/#primaryimage\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-git-ubuntu.png\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-git-ubuntu.png\",\"width\":1200,\"height\":630,\"caption\":\"Install Git on Ubuntu 20.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.brightwhiz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Git on Ubuntu 20.04 | 18.04 With Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/local.brightwhiz\/#website\",\"url\":\"http:\/\/local.brightwhiz\/\",\"name\":\"Brightwhiz.com\",\"description\":\"Best Tech guides, Tutorials, and News\",\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/local.brightwhiz\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/local.brightwhiz\/#organization\",\"name\":\"Brightwhiz\",\"url\":\"http:\/\/local.brightwhiz\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"width\":706,\"height\":135,\"caption\":\"Brightwhiz\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/brightwhiz\/\",\"https:\/\/x.com\/brightwhizmag\",\"https:\/\/instagram.com\/bright_whiz\/\",\"https:\/\/www.pinterest.com\/sobbayi\/\",\"https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\",\"name\":\"Michael Bright\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"caption\":\"Michael Bright\"},\"sameAs\":[\"https:\/\/sobbayi.com\"],\"url\":\"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Git on Ubuntu 20.04 | 18.04 With Examples","description":"In this simple guide we show you how to install Git on Ubuntu 20.04 with practical examples from default reps as well as the ppa sources","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":"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Git on Ubuntu 20.04 | 18.04 With Examples","og_description":"In this simple guide we show you how to install Git on Ubuntu 20.04 with practical examples from default reps as well as the ppa sources","og_url":"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/","og_site_name":"Brightwhiz.com","article_publisher":"https:\/\/www.facebook.com\/brightwhiz\/","article_published_time":"2021-01-07T14:40:23+00:00","article_modified_time":"2021-12-04T06:30:15+00:00","og_image":[{"width":1200,"height":630,"url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-git-ubuntu.png","type":"image\/png"}],"author":"Michael Bright","twitter_card":"summary_large_image","twitter_creator":"@brightwhizmag","twitter_site":"@brightwhizmag","twitter_misc":{"Written by":"Michael Bright","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/#article","isPartOf":{"@id":"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/"},"author":{"name":"Michael Bright","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32"},"headline":"How to Install Git on Ubuntu 20.04 | 18.04 With Examples","datePublished":"2021-01-07T14:40:23+00:00","dateModified":"2021-12-04T06:30:15+00:00","mainEntityOfPage":{"@id":"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/"},"wordCount":265,"publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"image":{"@id":"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-git-ubuntu.png","keywords":["Community","Debian","DevOps","Linux","Programming","Software development","Systems Administration","Ubuntu"],"articleSection":["Articles","Guides","How To","Software","Technology","Tools"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/","url":"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/","name":"How to Install Git on Ubuntu 20.04 | 18.04 With Examples","isPartOf":{"@id":"http:\/\/local.brightwhiz\/#website"},"primaryImageOfPage":{"@id":"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/#primaryimage"},"image":{"@id":"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-git-ubuntu.png","datePublished":"2021-01-07T14:40:23+00:00","dateModified":"2021-12-04T06:30:15+00:00","description":"In this simple guide we show you how to install Git on Ubuntu 20.04 with practical examples from default reps as well as the ppa sources","breadcrumb":{"@id":"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/#primaryimage","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-git-ubuntu.png","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-git-ubuntu.png","width":1200,"height":630,"caption":"Install Git on Ubuntu 20.04"},{"@type":"BreadcrumbList","@id":"http:\/\/local.brightwhiz\/install-git-ubuntu-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.brightwhiz\/"},{"@type":"ListItem","position":2,"name":"How to Install Git on Ubuntu 20.04 | 18.04 With Examples"}]},{"@type":"WebSite","@id":"http:\/\/local.brightwhiz\/#website","url":"http:\/\/local.brightwhiz\/","name":"Brightwhiz.com","description":"Best Tech guides, Tutorials, and News","publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/local.brightwhiz\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/local.brightwhiz\/#organization","name":"Brightwhiz","url":"http:\/\/local.brightwhiz\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","width":706,"height":135,"caption":"Brightwhiz"},"image":{"@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/brightwhiz\/","https:\/\/x.com\/brightwhizmag","https:\/\/instagram.com\/bright_whiz\/","https:\/\/www.pinterest.com\/sobbayi\/","https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ"]},{"@type":"Person","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32","name":"Michael Bright","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","caption":"Michael Bright"},"sameAs":["https:\/\/sobbayi.com"],"url":"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/"}]}},"_links":{"self":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/9373"}],"collection":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/comments?post=9373"}],"version-history":[{"count":0,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/9373\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media\/9374"}],"wp:attachment":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media?parent=9373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/categories?post=9373"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/tags?post=9373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}