Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
git.html42 linesDownload Raw Back to html
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>I.1. Getting the Source via Git</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="sourcerepo.html" title="Appendix I. The Source Code Repository" /><link rel="next" href="docguide.html" title="Appendix J. Documentation" /></head><body id="docContent" class="container-fluid col-10"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">I.1. Getting the Source via <span class="productname">Git</span></th></tr><tr><td width="10%" align="left"><a accesskey="p" href="sourcerepo.html" title="Appendix I. The Source Code Repository">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="sourcerepo.html" title="Appendix I. The Source Code Repository">Up</a></td><th width="60%" align="center">Appendix I. The Source Code Repository</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 16.3 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="docguide.html" title="Appendix J. Documentation">Next</a></td></tr></table><hr /></div><div class="sect1" id="GIT"><div class="titlepage"><div><div><h2 class="title" style="clear: both">I.1. Getting the Source via <span class="productname">Git</span> <a href="#GIT" class="id_link">#</a></h2></div></div></div><p>3   With <span class="productname">Git</span> you will make a copy of the entire code repository4   on your local machine, so you will have access to all history and branches5   offline. This is the fastest and most flexible way to develop or test6   patches.7  </p><div class="procedure" id="id-1.11.10.5.3"><p class="title"><strong>Git</strong></p><ol class="procedure" type="1"><li class="step"><p>8     You will need an installed version of <span class="productname">Git</span>, which you can9     get from <a class="ulink" href="https://git-scm.com" target="_top">https://git-scm.com</a>. Many systems already10     have a recent version of <span class="application">Git</span> installed by default, or11     available in their package distribution system.12    </p></li><li class="step"><p>13     To begin using the Git repository, make a clone of the official mirror:14 15</p><pre class="programlisting">16git clone https://git.postgresql.org/git/postgresql.git17</pre><p>18 19     This will copy the full repository to your local machine, so it may take20     a while to complete, especially if you have a slow Internet connection.21     The files will be placed in a new subdirectory <code class="filename">postgresql</code> of22     your current directory.23    </p><p>24     The Git mirror can also be reached via the Git protocol. Just change the URL25     prefix to <code class="literal">git</code>, as in:26 27</p><pre class="programlisting">28git clone git://git.postgresql.org/git/postgresql.git29</pre><p>30 31    </p></li><li class="step"><p>32     Whenever you want to get the latest updates in the system, <code class="command">cd</code>33     into the repository, and run:34 35</p><pre class="programlisting">36git fetch37</pre><p>38    </p></li></ol></div><p>39   <span class="productname">Git</span> can do a lot more things than just fetch the source. For40   more information, consult the <span class="productname">Git</span> man pages, or see the41   website at <a class="ulink" href="https://git-scm.com" target="_top">https://git-scm.com</a>.42  </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="sourcerepo.html" title="Appendix I. The Source Code Repository">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="sourcerepo.html" title="Appendix I. The Source Code Repository">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="docguide.html" title="Appendix J. Documentation">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Appendix I. The Source Code Repository </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 16.3 Documentation">Home</a></td><td width="40%" align="right" valign="top"> Appendix J. Documentation</td></tr></table></div></body></html>
codekingpro/portable-devtools · Team Ai