Setting Up Version Control Connection
Version control is your source of truth — the baseline mtdt.io deploys from, compares against, and keeps current. Connecting a repository unlocks Git-based deployments, metadata-to-Git backups, and comparisons.
Connect a repository
- Open Repos from the left navigation and choose Connect repository.
- Authorize mtdt.io against your provider — GitHub, GitLab or Gitea.
- Select the repository you want to use, and set its defaults:
- Default branch — the baseline that represents "correct" (commonly
main). - Base path — the package directory root inside the repo, e.g.
force-app/main/default.
- Default branch — the baseline that represents "correct" (commonly

Once connected, the repository is available everywhere mtdt works with Git: deploying from a branch, pushing a deployment to a branch, and comparisons.
The Free plan includes one version-control connection; Pro and Team allow unlimited connections.
App installation and pull-request validation
Reading and writing a branch works over the account connection alone. Features that react to events in the repository — pull-request validation and its runs — need mtdt.io installed on the repository itself:
- GitHub — install the app on the repository (Install App next to the repo).
- Gitea — Connect installs a webhook on the repository.
- GitLab — supported on gitlab.com. A self-managed GitLab instance can be connected as a repository, but the app installation is not offered and pull-request validation is unavailable there.
Writing to a repository — pushing a deployment, backing an org up to Git — needs write access to repository contents (Contents: write for a GitHub App). A read-only connection fails the push straight away.
How mtdt.io uses the connection
- Deploy from Git — retrieve metadata from a branch and deploy it to an org.
- Back up / push to Git — write an org's metadata into a repository so changes are versioned and reviewable.
- Compare — diff a branch against an org, or one source against another.
Repository layout
mtdt.io works with standard source format (force-app/main/default/...). If your repo uses a custom package directory or a monorepo layout, set the base path to the folder that contains your force-app (or equivalent) so mtdt reads the right tree.
Best practices
- Pick one baseline branch per environment and be consistent — comparisons are only meaningful relative to a stable baseline.
- Point the base path at your real package directory. A wrong base path makes everything look "missing," which mtdt.io will flag as a suspected misconfiguration rather than thousands of false diffs.
- Use a service account or bot identity for the connection on shared repositories, so automated commits and PRs are clearly attributed.
With an org and a repository connected, you're ready to deploy metadata.