如何在ubuntu中更新git版本

我们在ubuntu中使用 apt-get install安装git的时候,版本都比较低,那么如何才能安装最新的版本的git呢

请按照下面的步骤来执行命令,就可以搞定啦

sudo apt-get install python-software-properties software-properties-common
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt-get update
sudo apt-get install git -y
git --version