Method Git.git()
- Method
git
stringgit(string|zerogit_dir,stringcommand,string...args)- Description
Run a git command, and get the output.
- Parameter
git_dir Directory containing the Git repository. May be
UNDEFINEDto specify the Git repository for the current directory.- Parameter
command Git subcommand to execute.
- Parameter
args Arguemnts for
command.- Returns
Returns the output on stdout from running the command on success, and throws an error on failure.
- See also