How to install Git 2.17.0 on Ubuntu 18.04
To install Git - 2.17.0 on Ubuntu &ndash 18.04
Git is an open source and most popular Version Control System. When a developer develops software he or she can store the software with its source code in Git repository. You can create a duplicate copy of the stored software to make changes to source code over time. The advantage of Git repository is, even if you make a mistake on source code while editing, it will not affect your live software and you can fix the mistake by comparing it with previously released source code. In this tutorial, we will cover the installation of Git on Ubuntu 18.04
Installation
You can install the git from the default Ubuntu repository as follows.
root@linuxhelp1:~# apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
Use ' sudo apt autoremove' to remove them.
The following additional packages will be installed:
git-man liberror-perl
Suggested packages:
.
.
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.17.0-1ubuntu1_all.deb ...
Unpacking git-man (1:2.17.0-1ubuntu1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.17.0-1ubuntu1_amd64.deb ...
Unpacking git (1:2.17.0-1ubuntu1) ...
Setting up git-man (1:2.17.0-1ubuntu1) ...
Setting up liberror-perl (0.17025-1) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up git (1:2.17.0-1ubuntu1) ...
If you may want to know the version of Git, please run the following command on terminal.
root@linuxhelp1:~# git --version
git version 2.17.0
Post-Installation
You can now use git to clone any repository. However, if you wish to make git commits you first need to set your personal information which will be submitted to the main branch with each your commit. Enter the following commands to set your Name and email address.
root@linuxhelp1:~# git config --global user.name " linuxhelp1"
root@linuxhelp1:~# git config --global user.email abc@linuchelp1.com
After configuring the credential into Git, then we have to open a Git configuration file where you can find the user details as follows.
root@linuxhelp1:~# vim ~/.gitconfig [..] [user] name = linuxhelp1 email = abc@linuchelp1.com [..]
With this, the method to install Git - 2.17.0 on Ubuntu &ndash 18.04 comes to an end.
Comments ( 0 )
No comments available