Repository Module
Contains functions which allow basic operations on git repositories.
All operations assume that the CommandHelper can find git.exe
.
Functions and values
Function or value | Description |
Full Usage:
Repository.clone workingDir repoUrl toPath
Parameters:
string
-
The working directory.
repoUrl : string
-
The URL to the origin.
toPath : string
-
Specifies the new target subfolder.
|
|
Full Usage:
Repository.cloneSingleBranch workingDir repoUrl branchName toPath
Parameters:
string
-
The working directory.
repoUrl : string
-
The URL to the origin.
branchName : string
-
Specifies the target branch.
toPath : string
-
Specifies the new target subfolder.
|
|
Full Usage:
Repository.fullClean repositoryDir
Parameters:
string
-
The path of the directory to clean.
|
|
Full Usage:
Repository.init repositoryDir bare shared
Parameters:
string
-
The path of the target directory.
bare : bool
-
If the new directory is a bare directory.
shared : bool
-
Specifies that the git repository is to be shared amongst several users.
This allows users belonging to the same group to push into that repository.
|
|