← All stories
● Covered by 1 source · 1 reportLow impact

Google's Copybara Tool Transforms and Moves Code Between Repositories

New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Copybara moves code between Git and experimental Mercurial repositories.
  • It supports synchronization of public and confidential repositories.
  • Users can configure the tool for specialized use cases.

Overview of Copybara

Copybara is a tool developed by Google to transform and transfer source code between repositories. It addresses the issue of maintaining code in both confidential and public repositories, thereby enabling code to exist in multiple places without losing integrity.

Functionality

The primary function of Copybara is to enable users to select an authoritative repository while allowing contributions from other repositories. Users can import changes from non-authoritative repositories into the authoritative one, managing any merge conflicts that arise.

Stateless Operation

Copybara operates statelessly, storing state information in the destination repository through commit message labels. This feature allows multiple users or services to achieve consistent results with the same configurations across repositories.

Supported Repositories

Currently, Copybara exclusively supports Git repositories, with limited experimental support for Mercurial. Future updates will expand official support to additional repository types, enhancing versatility.

Use Cases and Example

Copybara can handle various use cases, such as importing sections of code from a confidential repository to a public repository or vice versa. Additionally, it can facilitate the transfer of changes from a public contributor into the authoritative repository, ensuring an organized workflow.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 07

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Primary sources

GitHub google/copybara

Reporting from

Google has released Copybara, an internal tool designed to move code between repositories, allowing users to maintain synchronization between public and confidential repositories. This tool facilitates contributions from multiple sources while ensuring one authoritative repository remains the source of truth.