Copybara – tool for transforming and moving code between repositories
3 months ago
- #code-migration
- #version-control
- #Google-tools
- Copybara is a tool for transforming and moving code between repositories, commonly used to sync confidential and public repositories.
- It requires one authoritative repository as the source of truth but allows contributions from any repository.
- Copybara is stateless, storing state in the destination repository via commit message labels.
- Currently supports Git repositories, with experimental support for Mercurial.
- Common use cases include importing code between repositories and handling merge conflicts.
- Copybara can be installed via weekly snapshot releases or compiled from source using JDK 11 and Bazel.
- Docker support is experimental, with environment variables for configuration.
- Documentation is still in progress, with resources available for further learning.