sudo add-apt-repository ppa:git-core/ppasudo apt-get updatesudo apt-get install git检查git版本,git version