title: Change main branch in Sonarqube without deleting branch
body: <p>I am trying to change my main branch in Sonarqube from <code>master</code> to <code>mainline</code> as I have been doing my analysis on <code>mainline</code> for the past few months.</p>
  <p>This post below in the Sonar community says that I have to delete the <code>mainline</code> branch then rename the <code>master</code> branch.  The problem with this approach is that I would lose all of my history which I do not want to do.
  <a href="https://community.sonarsource.com/t/how-to-change-the-main-branch-in-sonarqube/13669/37" rel="nofollow noreferrer">https://community.sonarsource.com/t/how-to-change-the-main-branch-in-sonarqube/13669/37</a></p>
  <p>Is there anyway to change the main brach to another branch without losing all of our scan history?</p>
  <p>Using:
  Developer Edition - Version 9.2.1</p>
  <p><a href="https://i.stack.imgur.com/UMdSN.png" rel="nofollow noreferrer">Picture of Branches</a></p>