Get latest stable Git with Ubuntu PPA

apt-add-repository ppa:git-core/ppa
apt update
apt upgrade

Using the latest version of Git over default in Ubuntu 16.04 gives you additional robustness against corrupted histories when adding remotes.

Categories:

Updated: