User login

Putting a local project maintained in git on a server as a central repository

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 ben@grassrootsconnection.org:~/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