Ubuntu 14.04で2系のgitを使う



$ sudo add-apt-repository ppa:git-core/ppa
 The most current stable version of Git for Ubuntu.

For release candidates, go to https://launchpad.net/~git-core/+archive/candidate .
 More info: https://launchpad.net/~git-core/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpm1h_rrd0/secring.gpg' created
gpg: keyring `/tmp/tmpm1h_rrd0/pubring.gpg' created
gpg: requesting key E1DF1F24 from hkp server keyserver.ubuntu.com
gpgkeys: key E1DD270288B4E6030699E45FA1715D88E1DF1F24 can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

$ sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --keyserver-options http-proxy=http://proxy.example.com:8080/ --recv-keys E1DF1F24
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.kL0BZJ0wMB --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://pgp.mit.edu:80 --keyserver-options http-proxy=http://proxy.example.com:8080/ --recv-keys E1DF1F24
gpg: requesting key E1DF1F24 from hkp server pgp.mit.edu
gpg: key E1DF1F24: public key "Launchpad PPA for Ubuntu Git Maintainers" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

$ sudo aptitude update
$ sudo aptitude safe-upgrade


$ git version
git version 2.13.0