Skip to content

git-shallow-clone

Perform a shallow clone of a Git repository to a temporary location for local analysis instead of using web APIs. Uses a helper script that prints the clone path to stdout for downstream consumption.

Plugin: odh-ai-helpers | User-invocable

Diagram

git-shallow-clone diagram

Arguments

/git-shallow-clone <REPOSITORY_URL> [TAG_OR_BRANCH]
Argument Required Default Description
REPOSITORY_URL - URL of the Git repository to clone
TAG_OR_BRANCH HEAD Git tag or branch to shallow-clone

Usage

/git-shallow-clone https://github.com/psf/requests.git
/git-shallow-clone https://github.com/psf/requests.git v2.28.0