How To Install Git Version Control Systems On Ubuntu 2018

in #git6 years ago

Githublogo
Git Version control systems is my favorite share and collaborate coding projects. Not just me Git is one of the most popular version control.

Further than my noted I will show the step installing and configuring Git on an Ubuntu 18.04 and this could be available to any version of Ubuntu.

Step 1 — Update Default Packages

Logged into your Ubuntu 18.04 server as a sudo non-root user, first update your default packages.

sudo apt update

Step 2 — Install Git

sudo apt install git

Step 3 — Confirm Successful Installation

You can confirm that you have installed Git correctly by running this command and receiving output similar to the following:

git --version
Output
git version 2.17.1

Step 4 — Set Up Git

Now that we have Git installed and to prevent warnings, you should configure it with your information.

git config --global user.name "Your Name"
git config --global user.email "[email protected]"
If you need to edit this file, you can use a text editor such as nano:

nano ~/.gitconfig
~/.gitconfig contents
[user]
name = Your Name
email = [email protected]

This is should be working, if you found any issue please let's me know on below comment.

Coin Marketplace

STEEM 0.24
TRX 0.21
JST 0.037
BTC 98048.48
ETH 3406.24
USDT 1.00
SBD 3.35