Skip to content

ShanaMaid/Git.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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);
 	

About

you can use git by php throught this !Git的PHP库

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages