git module is a lightweight wrapper around common git operations. For more complex operations, you can execute commands directly using the bash utility. Credentials are automatically configured by default.
Default configuration:
Example Usage
Methods
add
string
File path to add (ignored if all=True).
bool
If True, adds all changes instead of a single file.
branch
string
The name of the new branch.
bool
Whether to create and checkout the branch.
checkout
target_dir. If ref is provided, it checks out that specific branch/tag.
string
The local directory for the clone.
string
The Git ref (branch, tag) to clone. Defaults to "" (clone the default branch).
bool
If True, this indicates the intention to create a new branch, but is not currently used in the command.
clone
string
The local directory for the clone.
string
The Git ref (branch, tag) to clone. Defaults to "" (clone the default branch).
bool
If True, this indicates the intention to create a new branch, but is not currently used in the command.
commit
string
The commit message.
init
pull
push
bool
Whether to set upstream on push.

