erjemin / php-git

PHP Console for GIT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP Console for GIT

Simple copy git.php under you git directory and open it in browser.

Requrements

PHP must by able to use function "proc_open" and work from git user.

Configuration

You can run git.php from another folder by using configuration file.

Create git-config.php file with next structure:

<?php
return array(
    'git' => '/home/git/bin/git',  # Another path to git bin. Default: "git"
    'dir' => '/home/var/project/', # Path to project. Default: "."
    'allow' => array(
            # List of allowed commands. Default: null (not used)
        ),
    'deny' => array(
            # List of denied commands. Default: null (not used)
        ),
);

License

Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php

About

PHP Console for GIT