Can I change my app’s repository URL (e.g. from Bitbucket to GitHub) in Codemagic?

Last updated: March 12, 2026

Context

You may be migrating your code from one Git provider to another (for example, from Bitbucket to GitHub) and want your existing Codemagic application to retain its settings, build history, and environment variables. However, the Repository URL field appears greyed out and cannot be edited directly.

Answer

The Repository URL cannot be edited directly in the app settings in this case. Our support team can update it for you while preserving your environment variables, build history, and app settings. Only the repository link itself will change.

Follow these steps:

  1. Add a new temporary app in Codemagic connected to your new repository (e.g., the GitHub repo).

  2. Find both App IDs:

    • Old App ID: the existing app you want to keep (linked to the old repo).

    • New App ID: the temporary app you just added (linked to the new repo).

    • Where to find it: open the app in Codemagic and copy the ID from the tab URL, for example: https://codemagic.io/app/APP_ID

  3. Contact Codemagic Support via the in-app chat and provide the two IDs in this format:

    Old App ID: <old_app_id>
    New App ID: <new_app_id>

  4. We will update the repository URL of your existing app to the new repository. This is typically processed very quickly once we have the IDs.

  5. After confirmation, you can delete the temporary (new) app if you no longer need it.

  6. From then on, commits to the new repository will trigger builds in your existing Codemagic app.

Notes

  • This process is the same if you need to switch multiple apps—send pairs of Old App ID and New App ID for each app.