Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

display_name Git Clone
description Clone a Git repository by URL and skip if it exists.
icon ../.icons/git.svg
maintainer_github coder
verified true
tags
git
helper

Git Clone

This module allows you to automatically clone a repository by URL and skip if it exists in the path provided.

module "git-clone" {
    source   = "https://registry.coder.com/modules/git-clone"
    agent_id = coder_agent.example.id
    url      = "https://github.com/coder/coder"
}

To use with Git Authentication, add the provider by ID to your template:

data "coder_git_auth" "github" {
    id = "github"
}

Examples

Custom Path

module "git-clone" {
    source   = "https://registry.coder.com/modules/git-clone"
    agent_id = coder_agent.example.id
    url      = "https://github.com/coder/coder"
    path     = "~/projects/coder/coder"
}