{"id":31902,"date":"2018-11-01T19:02:07","date_gmt":"2018-11-01T13:32:07","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=31902"},"modified":"2018-11-01T19:02:07","modified_gmt":"2018-11-01T13:32:07","slug":"install-git-on-ubuntu-12-04","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/install-git-on-ubuntu-12-04\/","title":{"rendered":"How To Install Git on Ubuntu 12.04"},"content":{"rendered":"<p><span style=\"color: #333333;\"><strong>Install Git on Ubuntu 12.04:<\/strong><\/span><\/p>\n<p>Git is an open source, distributed version control system (VCS). It\u2019s commonly used for source code management (SCM), with sites like <a href=\"https:\/\/www.wikitechy.com\/step-by-step-tutorials\/GitHub\/github-installation-from-source-code\" target=\"_blank\" rel=\"noopener\">GitHub<\/a> offering a social coding experience, and popular projects such as Perl, Ruby on Rails, and the Linux kernel using it.Git is Associate in Nursing open supply, distributed version system (VCS). It\u2019s ordinarily used for ASCII text file management (SCM), with sites like GitHub giving a social secret writing expertise, and popular projects like Perl, Ruby on Rails, and the <a href=\"https:\/\/www.wikitechy.com\/tutorials\/linux\/linux-tutorial\" target=\"_blank\" rel=\"noopener\">Linux<\/a> kernel using it.<\/p>\n<h2 id=\"pre-flight-check\"><span style=\"color: #ff0000;\"><strong>Pre-Flight Check<\/strong><\/span><\/h2>\n<ul>\n<li>These instructions are intended for installing Git on <strong>Ubuntu 12.04<\/strong>.<\/li>\n<li>I\u2019ll be acting from a Liquid net Core Managed <a href=\"https:\/\/www.wikitechy.com\/technology\/using-ubuntu-install-skype\/\" target=\"_blank\" rel=\"noopener\">Ubuntu\u00a0<\/a>12.04 server, and I\u2019ll be logged in as root.<\/li>\n<\/ul>\n<h3 id=\"step-1-installation\"><span style=\"color: #800000;\">Step 1: <\/span>Installation<\/h3>\n<p>First, you\u2019ll follow a simple best practice, ensuring the list of available packages is up to date before installing anything new.<\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-apacheconf code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-apacheconf code-embed-code\">apt-get update<\/code><\/pre> <\/div>\n<p>Then it\u2019s a matter of just running one command for installation via apt-get:<\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-apacheconf code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-apacheconf code-embed-code\">apt-get install git-core<\/code><\/pre> <\/div>\n<p>You\u2019ll be asked to substantiate the transfer and installation; merely enter y to substantiate. Once this command is complete, <strong>stinkpot<\/strong> are going to be put in and prepared to use!<\/p>\n<p>As of the writing of this tutorial, this version of stinkpot accessible within the Liquid net repositories is: stinkpot <strong>version on 1.7.9.5<\/strong>. you&#8217;ll be able to check the version of stinkpot that was put in by mistreatment the subsequent command:<\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-apacheconf code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-apacheconf code-embed-code\">git --version<\/code><\/pre> <\/div>\n<h3 id=\"step-2-configuration\"><span style=\"color: #800000;\">Step 2:<\/span> Configuration<\/h3>\n<p>To <strong>prevent any commit errors<\/strong>, it\u2019s a good idea to setup your user for git. We\u2019ll setup the user test user with the e-mail address testuser@example.com.<\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-apacheconf code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-apacheconf code-embed-code\">git config --global user.name &quot;testuser&quot;<br\/>git config --global user.email &quot;testuser@example.com&quot;<\/code><\/pre> <\/div>\n<p>Next we\u2019ll verify the configuration changes by viewing the<strong> .gitconfig<\/strong> . Since you will are roaming around your server\u2019s classification system before beginning this tutorial, use the cd command to come back to your home directory:<\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-apacheconf code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-apacheconf code-embed-code\">cd<\/code><\/pre> <\/div>\n<p>And then view the .<strong>gitconfig<\/strong> :<\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-apacheconf code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-apacheconf code-embed-code\">cat .gitconfig<\/code><\/pre> <\/div>\n<p>You can also view the same details of your configuration by using the following command:<\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-apacheconf code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-apacheconf code-embed-code\">git config --list<\/code><\/pre> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Install Git on Ubuntu 12.04: Git is an open source, distributed version control system (VCS). It\u2019s commonly used for source code management (SCM), with sites like GitHub offering a social coding experience, and popular projects such as Perl, Ruby on Rails, and the Linux kernel using it.Git is Associate in Nursing open supply, distributed version [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":31905,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85748],"tags":[85833,85860,85861,85862,85858,85856,85834,85835,85857,85830,85831,85829,85859,85828,85832],"class_list":["post-31902","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-apt-get-install-git-core","tag-create-git-repository-on-server","tag-git-create-remote-repository","tag-git-server-docker","tag-git-server-download","tag-git-server-windows","tag-install-git-on-ec2-ubuntu","tag-install-git-on-ubuntu-16-04-digitalocean","tag-install-git-server-centos-7","tag-install-git-server-ubuntu","tag-install-git-ubuntu-17","tag-install-git-ubuntu-18","tag-open-source-git-server","tag-ubuntu-16-04-install-git","tag-using-git-on-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/31902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/comments?post=31902"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/31902\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media\/31905"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=31902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=31902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=31902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}