Methods summary
public
Cz\Git\Git
|
#
tag( string $name )
Creates a tag.
Parameters
Returns
Throws
Implementation of
|
public
Cz\Git\Git
|
#
merge( string $branch, array|null $options = NULL )
Merges branches.
Parameters
Returns
Throws
Implementation of
|
public
Cz\Git\Git
|
#
branchCreate( string $name, boolean $checkout = FALSE )
Creates new branch.
Parameters
Returns
Throws
Implementation of
|
public
Cz\Git\Git
|
#
branchRemove( string $name )
Removes branch.
Parameters
Returns
Throws
Implementation of
|
public
string
|
#
branchName( )
Gets name of current branch
Gets name of current branch
Returns
string
Throws
Implementation of
|
public
Cz\Git\Git
|
#
checkout( string $name )
Checkout branch.
Parameters
Returns
Throws
Implementation of
|
public
Cz\Git\Git
|
#
remove( string|string[] $file )
Removes file(s).
Parameters
Returns
Throws
Implementation of
|
public
Cz\Git\Git
|
#
add( string|string[] $file )
Adds file(s).
Parameters
Returns
Throws
Implementation of
|
public
Cz\Git\Git
|
#
rename( string|string[] $file, string|null $to = NULL )
Renames file(s).
Parameters
- $file
- array('from' => 'to', ...) || (from, to)
- $to
Returns
Throws
Implementation of
|
public
Cz\Git\Git
|
#
commit( string $message, string[] $params = NULL )
Commits changes
Parameters
- $message
- $params
- => value
Returns
Throws
Implementation of
|
public
boolean
|
#
isChanges( )
Exists changes?
Returns
boolean
Implementation of
|
protected
|
#
run( string|array $cmd )
Runs command.
Parameters
Throws
|