Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:A5c ai Babysitter Git CLI

From Leeroopedia
Knowledge Sources
Domains Infrastructure, Release_Management
Last Updated 2026-10-23 00:00 GMT

Overview

Git CLI environment for tag creation, branch detection, and repository synchronization across release and atlas plugin pipelines.

Description

This environment provides the Git CLI required by the release version resolver to create annotated release tags with provenance metadata, and by the atlas plugin repo sync to initialize, clone, and push plugin repositories. The release pipeline uses `git tag` with annotated tag messages carrying release provenance, while the atlas sync uses `git init`, `git remote add`, `git clone`, and `git push` for external repository synchronization.

Usage

Use this environment for release version resolution that creates annotated git tags and for atlas plugin repository synchronization that manages external plugin repos. It is the mandatory prerequisite for `release_version_resolver` and `atlas_repo_sync` implementations.

System Requirements

Category Requirement Notes
OS Linux / macOS CI runners
Hardware 1 CPU core, 1GB RAM Sufficient for git operations
Disk 2GB SSD For repository clones
Network Git remote access Required for clone and push (atlas sync with --push)

Dependencies

System Packages

  • `git` >= 2.30.0

Credentials

  • SSH keys for git remote access (or HTTPS credentials)
  • `GITHUB_TOKEN`: For GitHub HTTPS authentication (atlas sync)
  • Git user configuration (`user.name`, `user.email`) for commit authorship

Quick Install

# Verify git installation
git --version

# Configure git user (required for commits in atlas sync)
git config --global user.name "Release Bot"
git config --global user.email "release@babysitter.ai"

# The release pipeline creates tags automatically
node scripts/release-version.cjs ensure-tag --version 6.0.3 --branch main

Code Evidence

Git branch detection from `scripts/sync-atlas-plugin-repos.mjs:77-79`:

function currentBranch() {
  const result = spawnSync('git', ['branch', '--show-current'], { cwd: ROOT, encoding: 'utf8' });
  return result.status === 0 ? result.stdout.trim() : null;
}

Release tag creation from `scripts/release-version.cjs:195-205`:

'ensure-tag': (options) => {
  const result = ensureReleaseTag({
    repoRoot,
    releaseVersion: required(options, 'version'),
    branch: required(options, 'branch'),
    commit: typeof options.commit === 'string' ? options.commit : undefined,
    source: typeof options.source === 'string' ? options.source : TAG_SOURCE_PUBLISH_WORKFLOW,
    runUrl: typeof options['run-url'] === 'string' ? options['run-url'] : undefined,
  });
  emit({ releaseTag: result.tag, created: String(result.created), commit: result.commit }, options);
},

Atlas sync default dry-run from `scripts/sync-atlas-plugin-repos.mjs:11-13`:

// DEFAULT = DRY-RUN: no gh repo create, no clone, no network, no push. Each repo dir
// is git init + git remote add origin only. With --push (CI only): gh repo view/create
// if missing, git clone, checkout -B branch, commit, push.

Common Errors

Error Message Cause Solution
`fatal: not a git repository` Running outside a git repo Ensure the script runs from the monorepo root
`Refusing to act on an ambiguous tag` Tag name/version mismatch between tag and message metadata Verify `ensure-tag` is called with consistent version arguments
`git push: permission denied` No push access to remote Configure SSH keys or HTTPS credentials with write access

Compatibility Notes

  • Dry-run mode: Atlas sync defaults to dry-run (git init + remote add only); `--push` flag enables network operations.
  • Annotated tags: Release tags are annotated (not lightweight) to carry provenance metadata (source, run URL, commit SHA).
  • Idempotent tag creation: `ensureReleaseTag` never moves an existing release tag — it only creates if missing.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment