What is Git? Install Git on Windows 10 and Ubuntu 20.04

Install Git on Windows

The best way to install Git for windows is to download it from https://git-scm.com/download/win, by clicking this the .exe file will be downloaded. This is a Git project for windows not an official Git project, but they will maintain the most recent official build available to download.

git --version
git config --global user.name "USERNAME" 
git config --global user.email "EMAIL"
git config --list
user.name=USERNAME 
user.email=EMAIL

Install Git on Ubuntu 20.04

sudo apt update 
sudo apt install git
git --version
sudo apt update 
sudo apt install dh-autoreconf libcurl4-gnutls-dev libexpat1-dev make gettext libz-dev libssl-dev libghc-zlib-dev
wget -c https://github.com/git/git/archive/v2.28.0-rc1.tar.gz -O - | sudo tar -xz -C /usr/src
cd /usr/src/git-* 
sudo make prefix=/usr/local all
sudo make prefix=/usr/local install
git --version
git config --global user.name "USERNAME" 
git config --global user.email "EMAIL"
git config --list
user.name=USERNAME 
user.email=EMAIL

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sandy

Sandy

I am a freelancer, ready to upgrade myself with current trends in technology. Visit my own projects at https://sharedbooks.in ; https://codersdrive.com