每当我使用git
命令时,我都会收到此警告:
你的git版本是1.9.1。其中存在严重的安全漏洞。 有关详情,请访问:https://blog.heroku.com/archives/2014/12/23/update_your_git_clients_on_windows_and_os_x
但我有Ubuntu。我已尝试运行sudo apt-get update
然后sudo apt-get upgrade
,但它不会续订git客户端版本。
答案 0 :(得分:1)
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git