Git is an open-source revision control system, developed by Linus Torvalds, providing a big number of features and an intuitive syntax. It is used a lot by the developers that want to share their code with others.
The latest version available is Git 2.11, which brings a huge list of changes. For more informations, see this article.
The latest versions of Git are available via a LaunchPad PPA, permitting the users to automatically get the latest version on their system, if the PPA is enabled.
The below instructions should work on all the supported Ubuntu systems and derivatives: Ubuntu 17.04 Zesty Zapus, Ubuntu 16.10 Yakkety Yak, Ubuntu 16.04 Xenial Xerus, Ubuntu 14.04 Trusty Tahr, Linux Mint 18, Linux Mint 17.x and Elementary OS 0.3 Freya.
$ sudo add-apt-repository ppa:git-core/ppa
$ sudo apt-get update
$ sudo apt-get install git
If you want, to remove Git, do:
$ sudo apt-get remove git