<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Git_-_Setting_Up_Central_Server</id>
	<title>Git - Setting Up Central Server - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Git_-_Setting_Up_Central_Server"/>
	<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Git_-_Setting_Up_Central_Server&amp;action=history"/>
	<updated>2026-05-13T06:45:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://training-course-material.com/index.php?title=Git_-_Setting_Up_Central_Server&amp;diff=23569&amp;oldid=prev</id>
		<title>Bernard Szlachta at 13:44, 29 October 2014</title>
		<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Git_-_Setting_Up_Central_Server&amp;diff=23569&amp;oldid=prev"/>
		<updated>2014-10-29T13:44:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Cat|Git}}&lt;br /&gt;
&lt;br /&gt;
;1. Create a Group&lt;br /&gt;
 groupadd gitusers&lt;br /&gt;
;2. Add users to the gorup&lt;br /&gt;
 TODO: add the comant&lt;br /&gt;
# set up users&lt;br /&gt;
# set up repo&lt;br /&gt;
# clone repo&lt;br /&gt;
&lt;br /&gt;
# Settiing up permission&lt;br /&gt;
 sudo chown :gitusers -R central.git/&lt;br /&gt;
 chmod g+ws central.git/ -R&lt;br /&gt;
&lt;br /&gt;
 # change umask in /etc/profile to 002&lt;br /&gt;
&lt;br /&gt;
in /etc/pam.d add a line &lt;br /&gt;
 session    optional     pam_umask.so umask=002&lt;br /&gt;
&lt;br /&gt;
# Setting up keys&lt;br /&gt;
 local &amp;gt; ssh-keygen&lt;br /&gt;
 &lt;br /&gt;
 local &amp;gt; scp id_rsa.pub bszlachta@git.nobleprog.net:~&lt;br /&gt;
&lt;br /&gt;
 mkdir .ssh&lt;br /&gt;
 git:~ &amp;gt; cat id_rsa.pub &amp;gt;&amp;gt; .ssh/authorized_keys&lt;br /&gt;
 chmod u=rwx,g=,o= .ssh/&lt;br /&gt;
 chmod u=rw,g=,o= .ssh/authorized_keys&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== User Public repo ==&lt;br /&gt;
Kate is one of the developers who cannot push to the central repo&lt;br /&gt;
&lt;br /&gt;
She wants to expose her stuff via Kate public repo&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 mkdir kateprv&lt;br /&gt;
 git clone /g/central.git/ kateprv/&lt;br /&gt;
 chmod 700 kateprv/&lt;br /&gt;
&lt;br /&gt;
 # TODO it doesn&amp;#039;t seem to be working&lt;br /&gt;
 # TODO FIXED git remote set-url --delete --push origin /home/kate/pubdistprj.git/&lt;br /&gt;
 # create public repo&lt;br /&gt;
 git clone kateprv/ katepub.git --bare&lt;br /&gt;
&lt;br /&gt;
  # add remote &lt;br /&gt;
  git remote add  katepub /home/kate/katepub.git/&lt;br /&gt;
  git push katepub&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernard Szlachta</name></author>
	</entry>
</feed>