# google/copybara

Copybara: A tool for transforming and moving code between repositories.

Repository: https://github.com/google/copybara
Canonical: https://ross.abutalabs.com/products/copybara
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2026-08-26T18:20:28+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 3646, "days_push": 7, "days_rel": 9, "gap_med": 7.0, "n_releases_24m": 69}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3815, forks 344 (observed 2026-08-28T04:08:20.891687+00:00)

## What it is
Copybara is a Java-based command-line tool from Google that transforms and moves code between repositories, keeping a confidential and a public repository in sync. It is stateless, storing state in destination commit labels, and is configured via Starlark workflow files.

## Use cases
- sync code between a private and public git repository
- mirror changes from a public repo into an internal repo
- import external contributor patches into an authoritative repository
- transform code paths when moving code to a new repository
- automate repetitive code movement between repositories

## When to choose
- you maintain confidential and public versions of the same code
- you need repeatable, stateless repository-to-repository code migration
- you want to transform code (paths, references) during sync

## When to avoid
- you need one-time simple git mirroring without transformations
- you require non-Git version control systems (Mercurial support is experimental)
- you want a GUI or hosted service rather than a CLI

## Facets
- artifact type: cli-tool
- maturity: active
- function: version-control, developer-tools, workflow-automation, configuration-management
- domain: developer-tools, version-control
- platform: cli, jvm, cross-platform
- tags: code-mirroring, repository-sync, git, monorepo, open-source-synchronization, automation

## Member repositories
- google/copybara (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:20.891687+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:26:33.515076+00:00, confidence not recorded.
  - readme: https://github.com/google/copybara (fetched 2026-08-28T04:08:20.891687+00:00, sha 2c1f73a51eab)
- Data as of 2026-08-30T08:39:29.467469+00:00.
