Learn how to use the git.clone action to clone repositories in your Overcut workflows with advanced options for performance and customization.
git.clone
action is one of the most fundamental building blocks in Overcut workflows. It allows you to clone Git repositories into the workflow execution environment, providing agents and subsequent steps with access to your source code for analysis, modification, or review.
git.clone
action performs a Git clone operation with intelligent caching, branch management, and advanced clone options. It’s designed to be fast, reliable, and configurable for different use cases.
cloneOptions
parameter provides fine-grained control over the clone operation:
1
: Latest commit only (fastest, minimal history)0
: Full history (slowest, most disk usage)"blob:none"
: Skip all file contents (fastest, metadata only)"blob:limit=100M"
: Skip files larger than 100MB"combine"
: Apply multiple filters togetherignoreCache
:
Clone Option | Cache Compatible |
---|---|
depth | ✅ Yes |
singleBranch | ✅ Yes |
filter | ✅ Yes |
sparseCheckout | ❌ No |
ignoreCache: true | ❌ No |
git.clone
action provides output that can be used by subsequent steps:
{{outputs.clone-repo.workspacePath}}
: Full path to the cloned repository{{outputs.clone-repo.fromCache}}
: Whether cache was used{{outputs.clone-repo.dependenciesInstalledOnCache}}
: Whether dependencies are already installedrepoFullName
parameter. Ensure repoFullName
is set in your workflow step.repoFullName
: Use the full “owner/repo” formatignoreCache
unless necessarygit.clone
action, explore these related topics: