Changeset 3741962


Ignore:
Timestamp:
01/12/2021 08:44:00 AM (8 months ago)
Author:
Thomas Trepl <thomas@…>
Branches:
10.1, 11.0, qt5new, trunk, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
e342f1a
Parents:
c513d6e6
Message:

Add a note to hide absolte paths to projects

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24110 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/gitserver.xml

    rc513d6e6 r3741962  
    218218          distiguished as the local user name (see
    219219          <filename>~/.gitconfig</filename>) is recorded in the
    220           changesets.</para>
     220          changesets.
     221        </para>
    221222      </note>
    222223
     
    228229        for public read-only access.
    229230      </para>
     231
     232      <para>
     233        In the URL used to clone the project, the absolute path (here
     234        <filename>/srv/git/project1.git</filename>) has to be specified
     235        as the repository is not in git's home directory but in
     236        <filename class="directory">/srv/git</filename>. To get rid of the
     237        need to expose the structure of the server installation, a symlink
     238        can be added in git's home directory for each project like this:
     239      </para>
     240<screen role="nodump"><userinput>ln -svf /srv/git/project1.git /home/git/</userinput></screen>
     241
     242      <para>
     243        Now, the repository can be cloned using
     244      </para>
     245<screen role="nodump"><userinput>git clone git@gitserver:project1.git</userinput></screen>
    230246
    231247    </sect3>
Note: See TracChangeset for help on using the changeset viewer.