35 | | ===== Using recent `git` ===== |
36 | | |
37 | | However, if you either want to use the latest `git` version or use an older Ubuntu release, you can use [https://launchpad.net/~git-core/+archive/ppa the personal package archive] that provides backports of the recent `git` version for all Ubuntu releases since Hardy. |
38 | | |
39 | | Installation instructions: |
40 | | 1. add the following line to `/etc/apt/sources.list.d/git.list` (substituting `YOUR_UBUNTU_VERSION_HERE` with the Ubuntu release you are using): |
41 | | {{{ |
42 | | deb http://ppa.launchpad.net/git-core/ppa/ubuntu YOUR_UBUNTU_VERSION_HERE main |
43 | | }}} |
44 | | 1. import the PPA key: |
45 | | {{{ |
46 | | sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E1DF1F24 |
47 | | }}} |
48 | | 1. install `git`: |
49 | | {{{ |
50 | | $ apt-get update |
51 | | $ apt-get install git-core |
52 | | }}} |
53 | | 1. verify that the correct version was installed: |
54 | | {{{ |
55 | | $ git --version |
56 | | }}} |