https://github.com/shanamaid/git.php
you can use git by php throught this !Git的PHP库
https://github.com/shanamaid/git.php
Last synced: 7 months ago
JSON representation
you can use git by php throught this !Git的PHP库
- Host: GitHub
- URL: https://github.com/shanamaid/git.php
- Owner: ShanaMaid
- Created: 2016-11-13T02:05:35.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-13T03:05:10.000Z (almost 9 years ago)
- Last Synced: 2025-01-20T08:09:05.824Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 1000 Bytes
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Git.php
you can use git by php throught this !## Description
You can run git by php!Use 'exec' to archive!## Requirements
You must have installed git!
If you use windows,you should set path!## Example
```
require_once("Git.php");$git = new Git();// new Git("..") new Git($path)
$git->init();
$git->remote("add","origin","https://github.com/ShanaMaid/Git.php");
$git->pull("origin","master");
$git->add("-A");
$git->commit("-m","some msg");
$git->remote("rm","origin");
$git->push("origin","master");
$git->setPath($path);
```