# I'm receiving a git rev-list master error in the IDE?

If you're unable to access the Studio IDE due to the below error message, we'll do our best to get you unstuck with the below steps!

```shell
git rev-list master..origin/main --count
fatal: ambiguous argument 'master..origin/main': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
```

Usually this error indicates that the "main" branch name has changed or it is possible that dbt was unable to determine what your primary branch was. No worries, we have a few workarounds for you to try:

**Workaround 1** Take a look at your Environment Settings - If you **do not** have a custom branch filled in your Environment Settings:

1. Disconnect and reconnect your repository [connection](../../docs/platform/git/import-a-project-by-git-url.md) on your Project Settings page. This should then allow dbt to pick up that the "main" branch is now called `main`.
2. In the Environment Settings, set the custom branch to 'master' and refresh the Studio IDE.

**Workaround 2** Take a look at your Environment Settings - If you **do** have a custom branch filled in your Environment Settings:

1. Disconnecting and reconnecting your repository [connection](../../docs/platform/git/import-a-project-by-git-url.md) on your Project Settings page. This should then allow dbt to pick up that the "main" branch is now called `main`.
2. In the Environment Settings, remove the custom branch and refresh the Studio IDE.

If you've tried the workarounds above and are still experiencing this behavior - reach out to the Support team at <support@getdbt.com> and we'll be happy to help!

## Was this page helpful?

YesNo

[Privacy policy](https://www.getdbt.com/cloud/privacy-policy)[Create a GitHub issue](https://github.com/dbt-labs/docs.getdbt.com/issues)

This site is protected by reCAPTCHA and the Google [Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms) apply.
