dugite
is a wrapper on top of the Git command line interface, with some helpers to make it easy to consume in your Node applications. The important parts:
GitProcess
- the core of the library -GitProcess.exec
is how you interact with GitIGitResult
- the abstraction for a result returned by Git - contains exit code and standard output/error textIGitExecutionOptions
- additional overrides to change the behaviour ofGitProcess
(see API extensibility for more information)GitError
- a collection of known error codes thatdugite
can understandGitNotFoundErrorCode
andRepositoryDoesNotExistErrorCode
- error codes thatdugite
will raise for exceptional scenarios when invoking Git - you should check for these in your code.