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
File path to add (ignored if all=True).
If True, adds all changes instead of a single file.
branch
The name of the new branch.
Whether to create and checkout the branch.
checkout
target_dir. If ref is provided, it checks out that specific branch/tag.
The local directory for the clone.
The Git ref (branch, tag) to clone. Defaults to "" (clone the default branch).
If True, this indicates the intention to create a new branch, but is not currently used in the command.
clone
The local directory for the clone.
The Git ref (branch, tag) to clone. Defaults to "" (clone the default branch).
If True, this indicates the intention to create a new branch, but is not currently used in the command.
commit
The commit message.
init
pull
push
Whether to set upstream on push.

