How To Install Git On Ubuntu 18.04 | 2 Methods 🔴

Опубликовано: 22 Октябрь 2024
на канале: Explained Easy
86
0

How To Install Git On Ubuntu 18.04 | 2 Methods

In this tutorial, you will install and use Git in Ubuntu Linux
P.S. Installing from source take a while, feel free to rewind

0:00:00 - Intro
0:01:36 - Prerequisites
0:02:10 - Installing Git with Default Packages
0:03:49 - Installing Git from Source
0:15:17 - Setting Up Git
0:17:34 - Conclusion

Commands:
sudo apt update
sudo apt install git
git --version
sudo apt update
sudo apt install make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip
cd /tmp
wget https://github.com/git/git/archive/v2... -O git.zip
unzip git.zip
cd git-*
make prefix=/usr/local all
sudo make prefix=/usr/local install
cd ~
git clone https://github.com/git/git.git
cd git
make prefix=/usr/local all
sudo make prefix=/usr/local install
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
git config --list
nano ~/.gitconfig