Ubuntu升级git版本

安装了VSCode,提示我git版本需要升级。步骤如下

# To get the very latest version of git, you need to add the PPA (Personal Package Archive) from the Ubuntu Git Maintainers Team to your Software Source list. Do that with the add-apt-repository command to add the PPA:

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

# Then update the source list and upgrade git:
sudo apt-get update
sudo apt-get install git
在terminal中输入 git --version 可以看到版本更新到了2.18.0

猜你喜欢

转载自blog.csdn.net/zhhp1001/article/details/80929314