1. 程式人生 > >Ubuntu升級git版本

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