Skip to main content

Git Branches Configuration

Summary

  • Codiga supports the analysis of multiple branches.
  • Automated code reviews do not need to have any branch specified.

Default branch

When the default branch is not set, Codiga uses the default branch of your repository, similar to which branch would be checked out when you run git clone <url-of-repository>.

For GitHub and Bitbucket accounts, the default branch used for push notifications are master and main, respectively. You can change the default branch name.

Add additional branches

To track more branches, go to your project preferences. Click on the "Branches" tab, add the list of branches you want to support.

info

You have to set up a default branch before tracking other branches.

Branches

Show dashboard for a specific branch

You can display the dashboard of a specific project for a particular branch. By default, the default branch is shown. You can specify the branch to show using the branch selector, as shown below.

Branches

Show analyses for a specific branch

You can display the list of analyses for a project for a particular branch. By default, the default branch is shown. You can specify the branch to show using the branch selector.

Branches