Git 适用于 PHPsychopaths
If you're doing something miraculous with php and git. Here's a good interface to work with.
PsyGit provides an easy way to work with git commands and manipulate your local repository, without leaving your code so horrible.
Installation
Standalone
CQRS
Fluent Interface
CommandsIt's can simply be installed by composer.
$ composer require malukenho/psygitNow you can use the repository manager and start interact with your Repository.
(PsyGit\RepositoryManager::fromDirectory('project-repository'))
->trackFile('changelog.txt')
->commit('Changelog updated automatically 8 A.M.')
->push('origin', 'master', \PsyGit\Command\Push::PUSH_FORCE);暂无开放 Issues,或尚未同步最近议题。