Install Git 2.11.0 on Ubuntu, Linux Mint, CentOS, RHEL, Fedora

28/12/2020
Git

Git 2.11.0 is the most recent stable update and was released back in November 2016. Git is a free easy to use version control system while it has a tiny footprint with lightning fast performance. Version control for those who may not know, is a system that records changes to a file or a set of files over a period of time so that you can recall previous specific versions when needed.

Git outclasses the likes of Subversion, CVS, Perforce, and ClearCase with some niche features like cheap local branching, convenient staging areas, and multiple workflows.

See Changelog for recent updates

How to Install GIT 2.11.0 on Ubuntu 17.04, Ubuntu 16.10, Ubuntu 16.04, Ubuntu 15.04, Ubuntu 14.04, Linux Mint, Debian

sudo apt-add-repository ppa:git-core/ppa  sudo apt-get update && sudo apt-get install git

How to remove GIT from Ubuntu 17.04, Ubuntu 16.10, Ubuntu 16.04, Ubuntu 15.04, Ubuntu 14.04, Linux Mint, Debian

sudo add-apt-repository --remove ppa:git-core/ppa  sudo apt-get remove git

How to Install GIT 2.11.0 on CentOS, RHEL, Fedora

We will be compiling this package on the above OSes. But if git repo is up to date, then simply run the following command to install straight “sudo yum install git“. This is the quickest way to install git but since sometimes, if the repo is not up to date, then follow the steps below to compile the package

  • First of all, install required dependencies
sudo yum groupinstall "Development Tools"  sudo yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel
  • Download the package from github
wget https://github.com/git/git/archive/v2.11.0.tar.gz
  • Untar the downloaded package
tar -zxf git.ta.gz
  • Change directory to the git folder
cd git-*
  • Run the configuration and set a destination path where to install package by declaring the prefix
make configure  ./configure --prefix=/usr/local
  • Finally, to complete the install, run the folowing command and check installed version
sudo make install  git --version
ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

How to Undo Last Commit in Git

A common workflow in Git is that you make changes to your project, add the changes to the staging area, commit the changes,...
29/12/2020

Git – Push Changes to Remote Git Branch

In this article, I am going to show you how to push (upload) your local Git repository to a remote Git repository hosted...
29/12/2020

How to Cherry Pick in Git

git cherry pick is a merge feature of Git. But there is a slight difference in git cherry pick and git merge. Also, the...
29/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Reliable IPv4 and IPv6 Subnet Rental Services: The Perfect Solution for Global Businesses
23/12/2024

Tìm Hiểu Về Thuê Proxy US – Lợi Ích và Cách Sử Dụng Hiệu Quả
11/12/2024

Mua Proxy V6 Nuôi Facebook Spam Hiệu Quả Tại Onetcomvn
03/06/2024

Hướng dẫn cách sử dụng ProxyDroid để duyệt web ẩn danh
03/06/2024

Mua proxy Onet uy tín tại Onet.com.vn
03/06/2024