This team will distribute the most current stable package of Git for Ubuntu.
Stable releases: https://launchpad.net/~git-core/+archive/ppa
Release candidates: https://launchpad.net/~git-core/+archive/candidate
参考外文文档后,解决方法如下:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
即可,解决vscode提示git版本太低的问题。