ManualRepositories
Send your first change
You can send a branch to Berrit for review with a regular Git push.
Say you’ve made an edit on a feature branch. Where should it land after review? That’s its target branch. If you have a new local branch and want it to land on the repository’s default branch, use the Git push below. If the branch is already on your Git host, or you need another target such as a release branch, push to your host and import the branch in Berrit. The import dialog lets you pick the target.
Push a local Git branch
Section titled “Push a local Git branch”Start on a new local feature branch with at least one commit beyond the default branch. If the Git host’s repository is still empty, create the default branch there first. A Berrit owner or admin can also push that initial branch on its own through Berrit. Once the branch exists, you can send changes for review against it.
-
Open the repository in Berrit and choose Push. Copy the remote URL. The dialog fills in your Berrit organisation and repository slugs for you.
-
In your local clone, add the URL as a remote named
berrit. You only do this once. In the example below, replaceORG/REPOwith your slugs andmy-branchwith the name of your local branch.Terminal window git remote add berrit https://app.berrit.dev/git/ORG/REPOgit push -u berrit my-branch -
When Git asks for credentials, use any username and your Berrit API key as the password. You can create a key under Account → API keys.
Open the change
Section titled “Open the change”The push prints a link for each change it creates or updates. A feature branch normally becomes one review. If its commits form a linear sequence and each has its own change ID, Berrit opens a review per commit. Follow the link, or look up the number in Changes. Check the diff and target branch before asking for review. The -u in the command above sets this branch’s upstream to berrit/my-branch, so a plain git push from the branch will send your next edit back to Berrit.
After the change lands, fetch the target branch from your Git host as usual. For example, if your clone calls the host origin and the target is main, git fetch origin updates your local view of origin/main.
Import a branch from the browser
Section titled “Import a branch from the browser”Open Changes → New change, then pick the Branch and Target. Choose One change if you want the whole branch reviewed together, even if the individual commits have change IDs. Choose A change per commit if you want to review the pieces separately and the preview offers it. Check the preview, then select Create.
In Reviewers → Add a reviewer, you can ask someone for feedback without making their individual approval a condition of landing. If you need a particular person’s sign-off on this change, select Require their approval. Even if another reviewer satisfies the repository rule, Berrit will wait for the person you named. For a required team, one eligible member can approve on its behalf. Review a change · How the merge train works