User login

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

Searched words: 
make non-drupal repository

Note: The agaric git repository is not public, but this approach will work on your own server.

Stefan-agaric wrote: copy your folders to your home dir on the server, cd to /srv/git and then run git clone --bare folder folder.git

From my laptop:

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 clone -o 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 -o agaric git.agaric.com:/srv/git/outrageous.git outrageous