Creare un repository condivisibile con Git: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 5: Line 5:
<pre>
<pre>
sudo mkdir -p /files/git/repos
sudo mkdir -p /files/git/repos
cd /files/git/
cd /files/git/repos
sudo chown -R :www-data .
sudo chown -R :www-data .
sudo mkdir etc
sudo mkdir etc
Line 11: Line 11:
sudo git init --bare
sudo git init --bare
echo "/etc $(hostname -f)" | sudo tee description  > /dev/null
echo "/etc $(hostname -f)" | sudo tee description  > /dev/null
sudo chown -R :www-data .
</pre>
</pre>

Latest revision as of 09:15, 13 October 2011

Se si vuole condividere un repository Git con altri utenti, magari via gitweb, la sua creazione va fatta in modo particolare.

Ipotizziamo che il repository sia etc/

sudo mkdir -p /files/git/repos
cd /files/git/repos
sudo chown -R :www-data .
sudo mkdir etc
cd etc
sudo git init --bare
echo "/etc $(hostname -f)" | sudo tee description  > /dev/null
sudo chown -R :www-data .