Changeset 8558044 for general/prog/gitserver.xml
- Timestamp:
- 09/06/2021 05:42:49 PM (3 years ago)
- Branches:
- 11.1, 11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- fef4473
- Parents:
- 7999839
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/gitserver.xml
r7999839 r8558044 23 23 This section will describe how to set up, administer and secure a 24 24 <application>git</application> server. <application>Git</application> 25 has many options available. For more detailed documentation see 26 <ulink url="https://git-scm.com/book/en/v2"/>. 25 has many options available. For more detailed documentation see 26 <ulink url="https://git-scm.com/book/en/v2"/>. 27 27 </para> 28 28 … … 68 68 Putting in an unuable password hash (replacing the <literal>!</literal> 69 69 by <literal>NP</literal>) unlocks the account but it cannot be used 70 to login via password authentication. That is required by 70 to login via password authentication. That is required by 71 71 <application>sshd</application> to work properly. 72 72 Next, create some files and directories in the home directory of the git user 73 73 allowing access to the git repository using ssh keys. 74 74 </para> 75 75 76 76 <screen role="root"><userinput>install -o git -g git -dm0700 /home/git/.ssh && 77 77 install -o git -g git -m0600 /dev/null /home/git/.ssh/authorized_keys</userinput></screen> … … 89 89 90 90 <para> 91 It is also useful to set the default name of the initial branch 91 It is also useful to set the default name of the initial branch 92 92 of new repositories by modifying the git configuration. As the 93 93 <systemitem class='username'>root</systemitem> user, run: … … 103 103 can be executed: 104 104 </para> 105 105 106 106 <screen role="root"><userinput>echo "/usr/bin/git-shell" >> /etc/shells</userinput></screen> 107 107 … … 123 123 <para> 124 124 In all the instructions below, we use <emphasis>project1</emphasis> 125 as an example repository name. You should name your repository 125 as an example repository name. You should name your repository 126 126 as a short descriptive name for your specific project. 127 127 </para> … … 132 132 git init --bare && 133 133 chown -R git:git .</userinput></screen> 134 134 135 135 </sect3> 136 136 … … 171 171 <note> 172 172 <para> 173 The <emphasis>gitserver</emphasis> term used below 174 should be the host name (or ip address) of the git server. 173 The <emphasis>gitserver</emphasis> term used below 174 should be the host name (or ip address) of the git server. 175 175 </para> 176 176 </note> … … 188 188 189 189 <para>The initial content is now pushed to the server and 190 is available for other users. On the current machine, the 190 is available for other users. On the current machine, the 191 191 argument <literal>--set-upstream origin trunk</literal> is 192 192 now no longer required as the local repository is now … … 196 196 197 197 <screen role="nodump"><userinput>git push</userinput></screen> 198 198 199 199 <para> 200 200 Other developers can now clone the repository and do … … 230 230 231 231 <para> 232 In the URL used to clone the project, the absolute path (here 232 In the URL used to clone the project, the absolute path (here 233 233 <filename>/srv/git/project1.git</filename>) has to be specified 234 234 as the repository is not in git's home directory but in … … 252 252 The setup described above makes a repository available for 253 253 authenticated users (via providing the ssh public key file). 254 There is also a simple way to publish the 254 There is also a simple way to publish the 255 255 repository to unauthenticated users — of course without write 256 256 access. … … 262 262 daemon is in most cases enough for a development site. 263 263 </para> 264 264 265 265 <note> 266 266 <para> … … 344 344 </para> 345 345 <para>Specify the location of the git repositories. 346 Relative paths used when accessing the daemon will 346 Relative paths used when accessing the daemon will 347 347 translated relative to this directory. 348 348 </para> … … 381 381 382 382 <para> 383 As the base directory is <filename class="directory">/srv/git</filename> 383 As the base directory is <filename class="directory">/srv/git</filename> 384 384 by default (or set to a custom value in the configuration), 385 385 <application>git</application> interprets the incoming path … … 388 388 served. 389 389 </para> 390 390 391 391 </sect3> 392 392
Note:
See TracChangeset
for help on using the changeset viewer.