title: How to merge main and master branches?
body: <p>I created a git repo about a month ago where the main branch was called 'master'. A couple days ago when I tried to commit and push to the same repo it pushed my changes to the 'master' branch, but I got a message saying the main branch has been changed to the 'main' branch.</p>
  <p>I have tried merging but I get an error saying unable to merge unrelated histories (obviously they're going to have unrelated histories cause the 'main' branch was just created)</p>
  <p>Now all my code is on the 'master' branch which is not the main branch, so I was wondering how I could move everything to the 'main' branch?</p>
  <p>FYI: I did do a little research and I understand the whole reason why GitHub made this change, I just want to know how to figure this out.</p>