git clone: clone repositories from Cerewro

git clone downloads a complete copy of a remote repository, including the full commit history, branches and tags. From the Cerewro chat you can clone any repository from GitHub, GitLab, Bitbucket or Azure DevOps without opening a terminal.

Cerewro Chat — Clone a repository
Clone the repository https://github.com/user/my-project into the folder C:\projects
Command executed by Cerewro
git clone https://github.com/user/my-project C:\projects\my-project

git clone variants

VariantCommandWhen to use
Full clonegit clone URLFirst download of the repo
Specific branchgit clone -b develop URLOnly want one branch
Shallow clonegit clone --depth 1 URLLarge repos, last commit only
With submodulesgit clone --recurse-submodules URLProjects with Git submodules
Via SSHgit clone git@github.com:user/repo.gitAuthentication with SSH key

Clone with authentication (token)

Clone with GitHub Personal Access Token
git clone https://YOUR_TOKEN@github.com/user/private-repo.git
Store credentials permanently on Windows
# Save credentials in Windows Credential Manager
git config --global credential.helper manager-core

# From now on git will ask for username/token once and save them
git clone https://github.com/user/private-repo.git

Clone multiple repositories with Cerewro

Pipeline: clone a list of repos from a TXT file
Read the repos.txt file with the list of repositories and clone them all into C:\projects
Generated PowerShell script
$repos = Get-Content "repos.txt"
foreach ($repo in $repos) {
    $name = Split-Path $repo -Leaf
    $name = $name -replace '\.git$', ''
    Write-Host "Cloning: $name..."
    git clone $repo "C:\projects\$name"
    if ($LASTEXITCODE -eq 0) {
        Write-Host "OK: $name" -ForegroundColor Green
    } else {
        Write-Warning "ERROR: $name"
    }
}
Tip — shallow clone for CI/CD: In CI pipelines always use --depth 1 to reduce clone time for repositories with a long history (years of commits).