Skip to content

Guides

Hands-on tutorials to help you learn Copybara through practical examples.

Hello World

Your first Copybara workflow - sync files between local Git repositories with a simple transformation.

Start the tutorial →

Open Source a Project

Publish internal code to GitHub while filtering sensitive files and replacing internal references.

Start the tutorial →

Sync Docs via PR

Keep documentation in sync between repositories using Pull Requests for review, with automated GitHub Actions.

Start the tutorial →

Before starting these guides, make sure you have:

  • Java 11 or later installed (download)
  • Git installed and configured
  • Copybara JAR downloaded (see Installation)
If you want to…Start with
Learn Copybara basicsHello World
Publish code to GitHubOpen Source a Project
Sync docs with PR reviewSync Docs via PR
Understand concepts firstCore Concepts

All guides use the same basic command pattern:

Terminal window
java -jar copybara.jar migrate <config-file> <workflow-name>

For example:

Terminal window
java -jar copybara.jar migrate copy.bara.sky default