]> begriffs open source - ai-pg/blob - full-docs/txt/git.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / git.txt
1
2 I.1. Getting the Source via Git #
3
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
7    patches.
8
9    Git
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
13        distribution system.
14     2. To begin using the Git repository, make a clone of the official
15        mirror:
16 git clone https://git.postgresql.org/git/postgresql.git
17
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
25
26     3. Whenever you want to get the latest updates in the system, cd into
27        the repository, and run:
28 git fetch
29
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
32    https://git-scm.com.