{"id":753,"date":"2019-09-04T11:49:29","date_gmt":"2019-09-04T10:49:29","guid":{"rendered":"https:\/\/www.easydeploy.io\/blog\/?p=753"},"modified":"2019-09-04T11:55:44","modified_gmt":"2019-09-04T10:55:44","slug":"installation-and-configuration-of-git-in-linux-system","status":"publish","type":"post","link":"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/","title":{"rendered":"Installation and Configuration of Git in Linux System"},"content":{"rendered":"<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\"><a href=\"https:\/\/git-scm.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Git<\/a> is a<\/span>n Open Source Version Control System developed by Linus Torvalds, the legend, who developed the Linux operating system kernel in the year 2005. Git is a tool that handles and manages the development project\u2019s source code<span style=\"font-weight: 400;\"> history with both speed and efficiency.<\/span><\/p>\n<p style=\"text-align: justify;\">In this article, I&#8217;ll share my knowledge and experience with you to understand Git tool, how to set up a Github account, and steps for the installation and configuration of Git in Linux System. So, let&#8217;s start with how does the Git work!<\/p>\n<blockquote><p>Also Check: <a href=\"https:\/\/www.easydeploy.io\/blog\/best-devops-certifications\/\" target=\"_blank\" rel=\"noopener noreferrer\">List of 7 Best DevOps Certifications<\/a><\/p><\/blockquote>\n<h2 style=\"text-align: justify;\">How does Git Work?<\/h2>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Git is a <\/span><b>control system<\/b><span style=\"font-weight: 400;\"> which is used as a <\/span><b>content tracker,<\/b><span style=\"font-weight: 400;\"> which means it is used to store the source codes of the same project developed by different developers. The <\/span><b>source code<\/b><span style=\"font-weight: 400;\"> stored in Git keeps on changing as many developers work on the project parallelly, the Git\u2019s version control system enables us to <\/span><b>manage the different versions <\/b><span style=\"font-weight: 400;\">of the code.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Git has <\/span><b>two repositories<\/b><span style=\"font-weight: 400;\"> &#8211; one is stored in a <\/span><b>central server<\/b><span style=\"font-weight: 400;\"> and another one in the <\/span><b>developer\u2019s machine<\/b><span style=\"font-weight: 400;\">. It\u2019s a distributed version control system since the code is present in every developer\u2019s system.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Live projects have <\/span><b>multiple developers<\/b><span style=\"font-weight: 400;\"> working in <\/span><b>parallel<\/b><span style=\"font-weight: 400;\"> so a version control system like Git is necessary to ensure that there are no code conflicts between the developers. If a developer wants to make changes to a project he needs to <\/span><b>copy the whole repository <\/b><span style=\"font-weight: 400;\">to his system called<\/span><b> forking.<\/b><span style=\"font-weight: 400;\"> And then the changes made by him are replicated to the central server\u2019s repository. <\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">The <\/span><b>central server\u2019s<\/b><span style=\"font-weight: 400;\"> repository is maintained in <\/span><b>GitHub<\/b><span style=\"font-weight: 400;\"> which is an <\/span><b>online service<\/b><span style=\"font-weight: 400;\"> which stores the codes pushed by the developers by Git. The repositories stored in the Github can be <\/span><b>Cloned<\/b><span style=\"font-weight: 400;\"> to any local system and the changes made by other developers can be pushed to the Github. <\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">If needed, these changes are <\/span><b>merged<\/b><span style=\"font-weight: 400;\"> to the source codes which are present in other Github branches. Then he needs to send a <\/span><b>Pull Request <\/b><span style=\"font-weight: 400;\">notification to the original owner. The owner, in turn, will review the codes and then, once he is satisfied, he will <\/span><b>merge<\/b><span style=\"font-weight: 400;\"> the changes to the repo.<\/span><\/p>\n<h3 style=\"text-align: justify;\">Advantages of Using Git and GitHub<\/h3>\n<ul style=\"text-align: justify;\">\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">It\u2019s <\/span><b>open-source<\/b><span style=\"font-weight: 400;\"> with great <\/span><b>community support<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The <\/span><b>contents<\/b><span style=\"font-weight: 400;\"> of the files as well as the relationship between the files, directories, versions, tags and commits, all of these objects are secured cryptographically with the <\/span><b>secure MHA1<\/b><span style=\"font-weight: 400;\"> hashing algorithm<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">It\u2019s <\/span><b>flexible<\/b><span style=\"font-weight: 400;\"> with various kinds of non-linear <\/span><b>workflow environments<\/b><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">It is <\/span><b>efficient<\/b><span style=\"font-weight: 400;\"> with both large and small projects<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">It\u2019s designed to support <\/span><b>branches and tagging <\/b><span style=\"font-weight: 400;\">such that operations that affect branches and tags are also stored as a part of stored history<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">It is designed with <\/span><b>version control<\/b><span style=\"font-weight: 400;\"> so that at any point of time, we can retrieve the older version<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">It can be <\/span><b>integrated<\/b><span style=\"font-weight: 400;\"> with a number of <\/span><b>third-party tools and services.<\/b><\/li>\n<\/ul>\n<blockquote><p>As a DevOps Engineer, it is important to be familiar with the Continuous Integration tools to enhance your skills. Check out these <a href=\"https:\/\/www.easydeploy.io\/blog\/best-continuous-integration-tools\/\" target=\"_blank\" rel=\"noopener noreferrer\">top Continuous Integration tools<\/a> and get hands-on.<\/p><\/blockquote>\n<h3 style=\"text-align: justify;\"><b>Steps for Installation and Configuration of Git in Linux System<\/b><\/h3>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">So, we\u2019ve gained enough information about Git. Now, we&#8217;ll learn how to install Git, setup <a href=\"https:\/\/github.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">GitHub account<\/a> and then pushing the file from the local repository to the central Github\u2019s repository. So, below are the steps for installation and configuration of Git in Linux system.<\/span><\/p>\n<h4 style=\"text-align: justify;\">Step 1: Launching a Server<\/h4>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Launch a <\/span><b>Server<\/b><span style=\"font-weight: 400;\"> with any one of the Linux OS distributions such as <\/span><b>AWS Linux<\/b><span style=\"font-weight: 400;\">, <\/span><b>Centos, Ubuntu,<\/b><span style=\"font-weight: 400;\"> etc. and then SSH into the server and then change into the root user.<\/span><\/p>\n<h4 style=\"text-align: justify;\">Step 2: Installing Git<\/h4>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Install Git into the server after SSH into the server switch to root user and then run the following command.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">For <\/span><b>AWS Linux<\/b><span style=\"font-weight: 400;\"> and <\/span><b>CentOs<\/b><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><span style=\"font-weight: 400;\"># yum install git -y<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">\u00a0For <\/span><b>Ubuntu<\/b><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><span style=\"font-weight: 400;\"># apt-get install git<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 style=\"text-align: justify;\">Step 3: Creating a GitHub Account<\/h4>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Create a <\/span><b>GitHub account<\/b><span style=\"font-weight: 400;\"> by clicking the following link <\/span><a href=\"https:\/\/github.com\/\"><span style=\"font-weight: 400;\">https:\/\/github.com\/<\/span><\/a><span style=\"font-weight: 400;\">. Click on <\/span><b>SignUp<\/b><span style=\"font-weight: 400;\"> and enter the required details as shown in the below screenshot and click on <\/span><b>Sign Up for GitHub<\/b><span style=\"font-weight: 400;\">. If you already have an account click on sign in and provide the credentials, and then enter into the GitHub account.<\/span><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-755 size-full\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-1.png\" alt=\"Create a Github Account\" width=\"799\" height=\"396\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-1.png 799w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-1-300x149.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-1-768x381.png 768w\" sizes=\"(max-width: 799px) 100vw, 799px\" \/><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">We need to <\/span><b>Verify<\/b><span style=\"font-weight: 400;\"> the account to SignUp. so, verify and then click on <\/span><b>Create an Account<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-756 size-full\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-2.png\" alt=\"Sign up on Github\" width=\"800\" height=\"466\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-2.png 800w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-2-300x175.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-2-768x447.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">After completing the verification, it will ask us to <\/span><b>choose a plan<\/b><span style=\"font-weight: 400;\">. We can either choose<\/span><b> free tier<\/b><span style=\"font-weight: 400;\"> or <\/span><b>Pro<\/b><span style=\"font-weight: 400;\"> according to our requirement. Here I\u2019m choosing free tier and we have click on <\/span><b>Continue.<\/b><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-757 size-full\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-3.png\" alt=\"Github Subscription\" width=\"793\" height=\"524\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-3.png 793w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-3-300x198.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-3-768x507.png 768w\" sizes=\"(max-width: 793px) 100vw, 793px\" \/><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Fill in the required details and select the options as required by you as shown in the below screenshot and then click on <\/span><b>Submit.<\/b><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-758 size-full\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-4.png\" alt=\"Github Login\" width=\"780\" height=\"569\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-4.png 780w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-4-300x219.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-4-768x560.png 768w\" sizes=\"(max-width: 780px) 100vw, 780px\" \/><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Once we click on submit, we need to verify our email address by clicking on <\/span><b>Verify email address.<\/b><span style=\"font-weight: 400;\"> It will send you the verification email address to complete the final few steps.<\/span><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-759 size-full\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-5.png\" alt=\"Verify Email Address\" width=\"594\" height=\"258\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-5.png 594w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-5-300x130.png 300w\" sizes=\"(max-width: 594px) 100vw, 594px\" \/><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">By clicking and verify the email address, it will take you to the next screen where you can create your <\/span><b>own repositories.<\/b><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-760 size-full\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-6.png\" alt=\"Creating repositories\" width=\"800\" height=\"463\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-6.png 800w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-6-300x174.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-6-768x444.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Give the <\/span><b>name for your repository. T<\/b><span style=\"font-weight: 400;\">he repository can either be <\/span><b>public<\/b><span style=\"font-weight: 400;\"> or <\/span><b>private. <\/b><span style=\"font-weight: 400;\">For public repositories accounts are free, but there&#8217;s a charge for private repositories. Now, click on create repository and you can upload codes to your repo using the following set of commands.<\/span><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-761 size-full\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-7.png\" alt=\"Uploading codes to repo\" width=\"796\" height=\"485\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-7.png 796w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-7-300x183.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-7-768x468.png 768w\" sizes=\"(max-width: 796px) 100vw, 796px\" \/><\/p>\n<h4 style=\"text-align: justify;\">Step 4: Creating a repository in a local machine<\/h4>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">While creating a <\/span><b>new project<\/b><span style=\"font-weight: 400;\"> on your local machine using git, you&#8217;ll first <a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Git-Basics-Getting-a-Git-Repository\" target=\"_blank\" rel=\"noopener noreferrer\">create a new <\/a><\/span>repository <span style=\"font-weight: 400;\">(or often, &#8216;<\/span><b>repo<\/b><span style=\"font-weight: 400;\">&#8216;). Now change into the directory where you have your project. To <\/span><b>initialize a git repository<\/b><span style=\"font-weight: 400;\">, run the below command.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><span style=\"font-weight: 400;\"># git init<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 style=\"text-align: justify;\">Step 5: Adding files to the Repository<\/h4>\n<p style=\"text-align: justify;\"><b>Add or edit<\/b><span style=\"font-weight: 400;\"> files to the project. Once you&#8217;ve added or modified files in a folder containing a git repo, git will notice that <\/span><b>changes<\/b><span style=\"font-weight: 400;\"> have been made inside the repo. But, git won&#8217;t officially keep track of the file so in order to save the changes to files in the git repo, run the following command.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><span style=\"font-weight: 400;\"># git add *<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">The above command will add all the changes which we have made in the repo.<\/span><\/p>\n<h4 style=\"text-align: justify;\">Step 6: Creating a commit and pushing to the repo<\/h4>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">We now need to <\/span><b>commit<\/b><span style=\"font-weight: 400;\"> the along <\/span><b>with the message<\/b><span style=\"font-weight: 400;\"> so that we can identify it later with the message as shown below.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><span style=\"font-weight: 400;\"># git commit -m \"Your message about the commit\"<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">The message at the end of the commit should be something related to what the commit contains &#8211; maybe it&#8217;s a new feature, maybe it&#8217;s a bug fix, maybe it&#8217;s just fixing a typo. It will help to identify the commit easily.\u00a0 we&#8217;ll <\/span><b>push<\/b><span style=\"font-weight: 400;\"> the commit in MASTER of GitHub repo. This allows other people to see the changes you&#8217;ve made<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><span style=\"font-weight: 400;\"># git push origin master<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">In case of pushing to the particular branch, you can use the following commands<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><span style=\"font-weight: 400;\"># git push git@github.com:git\/git.git yourbranchname\u00a0<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0<\/span><span style=\"font-weight: 400;\"># git push origin &lt;yourbranchname&gt;<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">you can switch to particular branch using the command<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><span style=\"font-weight: 400;\"># git checkout &lt;branchname&gt;<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Step 7: <\/span><b>Creating a pull request<\/b><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">A <\/span><b>pull request<\/b><span style=\"font-weight: 400;\"> (PR) is a way to alert a repo&#8217;s owners that you want to make some changes to their code. It allows them to review the code and make sure it looks good before putting your changes on the master branch<\/span><b>.<\/b><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-762 size-full\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-8.png\" alt=\"Creating a pull request\" width=\"793\" height=\"415\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-8.png 793w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-8-300x157.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-8-768x402.png 768w\" sizes=\"(max-width: 793px) 100vw, 793px\" \/><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">it looks like once you&#8217;ve submitted the <\/span><b>PR request<\/b><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-763 size-full\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-9.png\" alt=\"Submit the PR Request\" width=\"799\" height=\"509\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-9.png 799w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-9-300x191.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-9-768x489.png 768w\" sizes=\"(max-width: 799px) 100vw, 799px\" \/><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">The Merge Pull request icon at the bottom of the screen will be in green if we don\u2019t have and conflicts with the codes in the master branch. And if there is any conflict, it will appear in Grey color, in order to rectify the conflict we have to manually mention Git which version to use.<\/span><\/p>\n<h4 style=\"text-align: justify;\">Step 8: Merging pull Request<\/h4>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">To <\/span><b>Merge<\/b><span style=\"font-weight: 400;\"> the changes to the Master Click on <\/span><b>Merge Pull Request<\/b><span style=\"font-weight: 400;\"> icon as shown:<\/span><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-764 size-full\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-10.png\" alt=\"Merging pull request\" width=\"799\" height=\"485\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-10.png 799w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-10-300x182.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/github-10-768x466.png 768w\" sizes=\"(max-width: 799px) 100vw, 799px\" \/><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">It\u2019s strongly recommended to have the minimum number of branches so delete the branch once you have done commit the changes and merged with the master branch.<\/span><\/p>\n<blockquote><p>Aspired to become an AWS DevOps Engineer? Go through our complete guide on <a href=\"https:\/\/www.easydeploy.io\/blog\/how-to-become-aws-devops-engineer\/\" target=\"_blank\" rel=\"noopener noreferrer\">how to become an AWS DevOps Engineer<\/a> and get ahead towards a bright career.<\/p><\/blockquote>\n<h3 style=\"text-align: justify;\">Final Words<\/h3>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">So, here I\u2019ve shared all of my knowledge on Git and the steps for the installation and configuration of Git in the Linux system. As I\u2019ve already mentioned, you can use the same process for any of the Linux distributions. So, I\u2019d strongly recommend you to use Git tool to manage the project\u2019s source code history efficiently. Try this process now and share your experience in the comment section below.\u00a0<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">In case you face any issues while implementing the above steps for the installation and configuration of Git in the Linux system, feel free to ask me by putting the comment below.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git is an Open Source Version Control System developed by Linus Torvalds, the legend, who developed the Linux operating system kernel in the year 2005. Git is a tool that handles and manages the development project\u2019s source code history with both speed and efficiency. In this article, I&#8217;ll share my knowledge and experience with you [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":766,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[26],"tags":[130,131,129],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Installation and Configuration of Git in Linux System | easydeploy.io<\/title>\n<meta name=\"description\" content=\"Git manages the project\u2019s source code history very efficiently. Here we&#039;ll learn the steps for the installation and configuration of Git in Linux system.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installation and Configuration of Git in Linux System | easydeploy.io\" \/>\n<meta property=\"og:description\" content=\"Git manages the project\u2019s source code history very efficiently. Here we&#039;ll learn the steps for the installation and configuration of Git in Linux system.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/\" \/>\n<meta property=\"og:site_name\" content=\"easydeploy.io\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-04T10:49:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-04T10:55:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/installation_and_configuration_of_Git_in_Linux_system.png\" \/>\n\t<meta property=\"og:image:width\" content=\"830\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Siranjeevi R\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Siranjeevi R\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/\"},\"author\":{\"name\":\"Siranjeevi R\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0e7f79e0cd26f6446f7a76d9d2d3b20c\"},\"headline\":\"Installation and Configuration of Git in Linux System\",\"datePublished\":\"2019-09-04T10:49:29+00:00\",\"dateModified\":\"2019-09-04T10:55:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/\"},\"wordCount\":1419,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/installation_and_configuration_of_Git_in_Linux_system.png\",\"keywords\":[\"Git tool\",\"Github account\",\"installation and configuration of Git in Linux system\"],\"articleSection\":[\"DevOps\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/\",\"name\":\"Installation and Configuration of Git in Linux System | easydeploy.io\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/installation_and_configuration_of_Git_in_Linux_system.png\",\"datePublished\":\"2019-09-04T10:49:29+00:00\",\"dateModified\":\"2019-09-04T10:55:44+00:00\",\"description\":\"Git manages the project\u2019s source code history very efficiently. Here we'll learn the steps for the installation and configuration of Git in Linux system.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#primaryimage\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/installation_and_configuration_of_Git_in_Linux_system.png\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/installation_and_configuration_of_Git_in_Linux_system.png\",\"width\":830,\"height\":360,\"caption\":\"installation and configuration of Git in Linux system\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.easydeploy.io\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installation and Configuration of Git in Linux System\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/\",\"name\":\"easydeploy.io\",\"description\":\"A Cloud Architect Company\",\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.easydeploy.io\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\",\"name\":\"EasyDeploy Technologies Pvt Ltd\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png\",\"width\":536,\"height\":100,\"caption\":\"EasyDeploy Technologies Pvt Ltd\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0e7f79e0cd26f6446f7a76d9d2d3b20c\",\"name\":\"Siranjeevi R\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/353661218917699fcc292e9bc0da9081?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/353661218917699fcc292e9bc0da9081?s=96&d=mm&r=g\",\"caption\":\"Siranjeevi R\"},\"url\":\"https:\/\/www.easydeploy.io\/blog\/author\/siru\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installation and Configuration of Git in Linux System | easydeploy.io","description":"Git manages the project\u2019s source code history very efficiently. Here we'll learn the steps for the installation and configuration of Git in Linux system.","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:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/","og_locale":"en_GB","og_type":"article","og_title":"Installation and Configuration of Git in Linux System | easydeploy.io","og_description":"Git manages the project\u2019s source code history very efficiently. Here we'll learn the steps for the installation and configuration of Git in Linux system.","og_url":"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/","og_site_name":"easydeploy.io","article_published_time":"2019-09-04T10:49:29+00:00","article_modified_time":"2019-09-04T10:55:44+00:00","og_image":[{"width":830,"height":360,"url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/installation_and_configuration_of_Git_in_Linux_system.png","type":"image\/png"}],"author":"Siranjeevi R","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Siranjeevi R","Estimated reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#article","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/"},"author":{"name":"Siranjeevi R","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0e7f79e0cd26f6446f7a76d9d2d3b20c"},"headline":"Installation and Configuration of Git in Linux System","datePublished":"2019-09-04T10:49:29+00:00","dateModified":"2019-09-04T10:55:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/"},"wordCount":1419,"commentCount":0,"publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/installation_and_configuration_of_Git_in_Linux_system.png","keywords":["Git tool","Github account","installation and configuration of Git in Linux system"],"articleSection":["DevOps"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/","url":"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/","name":"Installation and Configuration of Git in Linux System | easydeploy.io","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#primaryimage"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/installation_and_configuration_of_Git_in_Linux_system.png","datePublished":"2019-09-04T10:49:29+00:00","dateModified":"2019-09-04T10:55:44+00:00","description":"Git manages the project\u2019s source code history very efficiently. Here we'll learn the steps for the installation and configuration of Git in Linux system.","breadcrumb":{"@id":"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#primaryimage","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/installation_and_configuration_of_Git_in_Linux_system.png","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/09\/installation_and_configuration_of_Git_in_Linux_system.png","width":830,"height":360,"caption":"installation and configuration of Git in Linux system"},{"@type":"BreadcrumbList","@id":"https:\/\/www.easydeploy.io\/blog\/installation-and-configuration-of-git-in-linux-system\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.easydeploy.io\/blog\/"},{"@type":"ListItem","position":2,"name":"Installation and Configuration of Git in Linux System"}]},{"@type":"WebSite","@id":"https:\/\/www.easydeploy.io\/blog\/#website","url":"https:\/\/www.easydeploy.io\/blog\/","name":"easydeploy.io","description":"A Cloud Architect Company","publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.easydeploy.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.easydeploy.io\/blog\/#organization","name":"EasyDeploy Technologies Pvt Ltd","url":"https:\/\/www.easydeploy.io\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png","width":536,"height":100,"caption":"EasyDeploy Technologies Pvt Ltd"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0e7f79e0cd26f6446f7a76d9d2d3b20c","name":"Siranjeevi R","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/353661218917699fcc292e9bc0da9081?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/353661218917699fcc292e9bc0da9081?s=96&d=mm&r=g","caption":"Siranjeevi R"},"url":"https:\/\/www.easydeploy.io\/blog\/author\/siru\/"}]}},"_links":{"self":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/753"}],"collection":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/comments?post=753"}],"version-history":[{"count":7,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/753\/revisions"}],"predecessor-version":[{"id":771,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/753\/revisions\/771"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media\/766"}],"wp:attachment":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media?parent=753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/categories?post=753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/tags?post=753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}