Master branch not exist

Hi
as git chenge the name of master branch to main.

I create project and after analyse always looking for master branch!
How can I change MAIN BRANCH from master to main?

here is the message after analyse:
“master” branch has not been analyzed yet and you have multiple branches already. It looks like it is not your Main Branch, check your configuration.

Any idea?
Thanks

Hey there.

  • What version of SonarQube are you using, and which DevOps Platform / CI are you using to run analysis (or are you just running an analysis on your local machine?)
  • A project administrator can rename the main branch under Project Settings/Administration > Branches & Pull Requests