To begin, you need to have your git repositories set up in a directory that the webserver can access. They can be in subdirectories within that, but you will need a base directory to tell GitPHP where to look for repositories.
These must be bare repositories. GitPHP will not read working copy repositories (the .git hidden folder in your source tree).
You can make a copy of your bare repository by running:
git clone --bare ~/myproject /gitprojects/myproject.git
Or, a new bare repository can be initialized with:
git init --bare /gitprojects/mybareproject.git
Once you have your projects in a directory, something like: * /gitprojects/project1.git * /gitprojects/project2.git * /gitprojects/subdir/project3.git Now you can begin setting up GitPHP.
chown apache:apache templates_c
(assuming your webserver runs as user/group apache - this is the better way), or:
chmod 777 templates_c
All the available config options and their default settings are documented on the Configuration Options page, as well as in gitphp.conf.defaults.php. If you want to change any of the settings, just copy the config option from the defaults file to your normal config and change the setting.
During upgrades, your existing config file will not be overwritten. However, new options or features may be added to the defaults file, so you may want to check for updates to the config options page or defaults file every now and then.