This question already has an answer here:
I'm currently on ubuntu 12.04 and since this is an older version of ubuntu i have git 126.96.36.199 installed and i'm not sure how i can upgrade this to git 2.x.
- what do i type to install git 2.x (sudo apt-get install git)?
- when installing git 2.x, does it overwrite git 1.7? if not how do you choose which one to use?
- how do i find out where git 1.7 is installed on my system?