Git
class Git
Git Interface Class
This class enables the creating, reading, and manipulation of git repositories.
Properties
static protected string | $bin | Git executable location |
Methods
Sets git executable path
Gets git executable path
Sets up library for use in a default Windows environment
Clones a remote repo into a directory and then returns a GitRepo object for the newly created local repo
Checks if a variable is an instance of GitRepo
Details
at line 43
static
set_bin(string $path)
Sets git executable path
at line 50
static
get_bin()
Gets git executable path
at line 57
static
windows_mode()
Sets up library for use in a default Windows environment
at line 71
static GitRepo
create(string $repo_path, string $source = null)
Create a new git repository
Accepts a creation path, and, optionally, a source path
at line 84
static GitRepo
open(string $repo_path)
Open an existing git repository
Accepts a repository path
at line 100
static GitRepo
clone_remote(string $repo_path, string $remote, string $reference = null)
Clones a remote repo into a directory and then returns a GitRepo object for the newly created local repo
Accepts a creation path and a remote to clone from
at line 113
static bool
is_repo(mixed $var)
Checks if a variable is an instance of GitRepo
Accepts a variable