Methods summary
public
|
#
createTag( string $name, array|null $options = NULL )
Creates a tag.
Parameters
Throws
|
public
|
#
removeTag( string $name )
Removes tag.
Parameters
Throws
|
public
|
#
renameTag( string $oldName, string $newName )
Renames tag.
Parameters
Throws
|
public
string[]|null
|
#
getTags( )
Returns list of tags in repo.
Returns list of tags in repo.
Returns
string[]|null NULL => no tags
|
public
|
#
merge( string $branch, array|null $options = NULL )
Merges branches.
Parameters
Throws
|
public
|
#
createBranch( string $name, boolean $checkout = FALSE )
Creates new branch.
Parameters
Throws
|
public
|
|
public
string
|
|
public
string[]|null
|
#
getBranches( )
Returns list of branches in repo.
Returns list of branches in repo.
Returns
string[]|null NULL => no branches
|
public
string[]|null
|
#
getLocalBranches( )
Returns list of local branches in repo.
Returns list of local branches in repo.
Returns
string[]|null NULL => no branches
|
public
|
#
checkout( string $name )
Checkout branch.
Parameters
Throws
|
public
|
#
removeFile( string|string[] $file )
Removes file(s).
Parameters
Throws
|
public
|
#
addFile( string|string[] $file )
Adds file(s).
Parameters
Throws
|
public
|
#
addAllChanges( )
Adds all created, modified & removed files.
Adds all created, modified & removed files.
Throws
|
public
|
#
renameFile( string|string[] $file, string|null $to = NULL )
Renames file(s).
Parameters
- $file
- array('from' => 'to', ...) || (from, to)
- $to
Throws
|
public
|
#
commit( string $message, string[] $params = NULL )
Commits changes
Parameters
- $message
- $params
- => value
Throws
|
public
boolean
|
|
public
Cz\Git\IGit
|
#
pull( string|null $remote = NULL, array $params = NULL )
Pull changes from a remote
Pull changes from a remote
Parameters
Returns
Throws
|
public
Cz\Git\IGit
|
#
push( string|null $remote = NULL, array $params = NULL )
Push changes to a remote
Parameters
Returns
Throws
|
public
Cz\Git\IGit
|
#
fetch( string|null $remote = NULL, array $params = NULL )
Run fetch command to get latest branches
Run fetch command to get latest branches
Parameters
Returns
Throws
|
public
Cz\Git\IGit
|
#
addRemote( string $name, string $url, array $params = NULL )
Adds new remote repository
Adds new remote repository
Parameters
Returns
|
public
Cz\Git\IGit
|
#
renameRemote( string $oldName, string $newName )
Renames remote repository
Renames remote repository
Parameters
Returns
|
public
Cz\Git\IGit
|
#
removeRemote( string $name )
Removes remote repository
Removes remote repository
Parameters
Returns
|
public
Cz\Git\IGit
|
#
setRemoteUrl( string $name, string $url, array $params = NULL )
Changes remote repository URL
Changes remote repository URL
Parameters
Returns
|
public static
Cz\Git\IGit
|
#
init( string $directory, array $params = NULL )
Init repo in directory
Parameters
Returns
Throws
|
public static
Cz\Git\IGit
|
#
cloneRepository( string $url, string|null $directory = NULL )
Clones GIT repository from $url into $directory
Clones GIT repository from $url into $directory
Parameters
Returns
|