Home ›
Putting a local project maintained in git on a server as a central repositoryPutting a local project maintained in git on a server as a central repository
Submitted by Benjamin Melançon on July 20, 2009 - 2:17pm
Note: The agaric git repository is not public, but this approach will work on your own server.
Stefan explained: copy your folders to your home dir on the server, cd to /srv/git and then run git clone --bare folder folder.git
cd ~
scp -r customhome [email protected]:~/customhome
On the server:
ben@server:/srv/git/agaric$ git clone --bare ~/customhome customhome.git
Initialized empty Git repository in /srv/git/agaric/customhome.git/
And don't forget!
cd customhome.git
git update-server-info
To access your project:
git agaric git.agaric.com:/srv/git/agaric/customhome.git customhome
Or a more common example, for one not nested in the agaric folder in our collection of git repositories:
git clone git.agaric.com:/srv/git/outrageous.git outrageous
Searched words:
make non-drupal repository

