Hi Sebastian,
To setup a PostgreSQL backed repository, you first need to create the database and user that will own your GeoGig repositories in PostgreSQL. GeoGig won't create the database or user for you.
Once you have the database created, you can initialize the repository like this:
geogig --repo 'postgresql://localhost/geogig/myrepo?user=user&password=password' init
The --repo option has to come before the init command. And putting the PostgreSQL URI in single quotes will make sure all the special characters are handled correctly.
Once that is done, you can use the exact same format for the serve command:
geogig --repo 'postgresql://localhost/geogig/myrepo?user=user&password=password' serve
That should setup your GeoGig server. To verify, sent a GET request to
http://localhost:8182/repos. It should return a success response with some XML in it similar to this:
<?xml version='1.0' encoding='UTF-8'?>
<repos>
<repo>
<name>myrepo</name>
<atom:link xmlns:atom="
http://www.w3.org/2005/Atom" rel="alternate" href="" href="http://localhost:8182/repos/testrepo.xml">http://localhost:8182/repos/testrepo.xml" type="application/xml"/>
</repo>
</repos>