# Configuring the repository URL and the default branch

When adding a new project 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 project 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 projects for security reasons.

:::tip[Using an HTTPS URL]

You can use HTTPS Git URLs, using a personal access token for authorization: in this case, you don't need an SSH key: [Configuring HTTPS authorization credentials](/bitrise-platform/repository-access/configuring-https-authorization-credentials).

:::

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.

1. 1. Open your project on Bitrise with a user that has the **Admin** [role on the project](/bitrise-platform/projects/roles-and-permissions-for-bitrise-ci), or a [custom role](/bitrise-platform/workspaces/collaboration-and-permissions-in-workspaces/custom-roles/custom-roles-overview) with the **Edit workflows** permission.
1. On the main page of the project, click on the **Project settings** button.
1. From the menu on the left, select **Repository**.
1. On the **Repository URL** card, click **Change**.
1. Enter the new URL in the dialog.

   ![SCR-20260331-przw.png](/img/_paligo/uuid-fa95efd5-ff6f-a7a3-2dc3-7ccc5878cd47.png)
1. 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.

1. 1. Open your project on Bitrise with a user that has the **Admin** [role on the project](/bitrise-platform/projects/roles-and-permissions-for-bitrise-ci), or a [custom role](/bitrise-platform/workspaces/collaboration-and-permissions-in-workspaces/custom-roles/custom-roles-overview) with the **Edit workflows** permission.
1. On the main page of the project, click on the **Project settings** button.
1. From the menu on the left, select **Repository**.
1. On the **Repository URL** card, click **Change**.
1. In the dialog, enter the branch name in the **Default branch** field.

   ![SCR-20260331-przw.png](/img/_paligo/uuid-fa95efd5-ff6f-a7a3-2dc3-7ccc5878cd47.png)
1. Type the name of the branch you want to use as default branch.
1. Click **Save** to save changes.
