2 I.1. Getting the Source via Git #
4 With Git you will make a copy of the entire code repository on your
5 local machine, so you will have access to all history and branches
6 offline. This is the fastest and most flexible way to develop or test
10 1. You will need an installed version of Git, which you can get from
11 https://git-scm.com. Many systems already have a recent version of
12 Git installed by default, or available in their package
14 2. To begin using the Git repository, make a clone of the official
16 git clone https://git.postgresql.org/git/postgresql.git
18 This will copy the full repository to your local machine, so it may
19 take a while to complete, especially if you have a slow Internet
20 connection. The files will be placed in a new subdirectory
21 postgresql of your current directory.
22 The Git mirror can also be reached via the Git protocol. Just
23 change the URL prefix to git, as in:
24 git clone git://git.postgresql.org/git/postgresql.git
26 3. Whenever you want to get the latest updates in the system, cd into
27 the repository, and run:
30 Git can do a lot more things than just fetch the source. For more
31 information, consult the Git man pages, or see the website at