Skip to main content

Configuring the repository URL and default branch

Abstract

When adding a new app to Bitrise, you specify a repository that is used to store your source code, and a branch that Bitrise uses as the default branch. You can change these at any time from App Settings.

When adding a new app to Bitrise, you specify a repository that is used to store your source code, and a branch that Bitrise uses as the default branch.

Once the app is set up, you can change these at any time.

Changing the repository URL

The repository URL is the address where your repository can be accessed by Bitrise. It can be either an SSH URL or an HTTPS URL: we strongly recommend using SSH URLs for all private apps for security reasons.

If you move your project's repository, or the URL changes for any other reason, you can update it on Bitrise and continue building without an issue.

Admin access only

Only users with the role of admin on the app's team can access all functions of the App Settings page of an app.

  1. Open your app on Bitrise.

  2. Click on App Settings.

  3. From the menu on the left, select General.

  4. Click Edit.

  5. Find the Repository URL field.

  6. Enter the new URL.

  7. Click Save to save changes.

Changing the default branch

The default branch is the branch of your repository that Bitrise will use if no other configuration indicates otherwise.

You can change the default branch at any time.

Admin access only

Only users with the role of admin on the app's team can access all functions of the App Settings page of an app.

  1. Open your app on Bitrise.

  2. Click on App Settings.

  3. From the menu on the left, select General.

  4. Click Edit.

  5. Find the Default branch field.

    default_branch.png
  6. Type the name of the branch you want to use as default branch.

  7. Click Save to save changes.