title: How to merge master branch into main
body: <p>I have created a new remote repo &quot;infrastructure&quot; on GitHub.</p>
  <p>I have then created a local repo on my computer in the folder &quot;infr&quot; with <code>git init</code></p>
  <p>When I pushed my local repo with <code>git push -u origin master</code> the new branch &quot;master&quot; was created.</p>
  <p>I want to merge &quot;master&quot; branch into &quot;main&quot; branch now.</p>
  <p>After trying to open a pull request git does not detect differences between them and does not let me do the merging, although checking each branch, you can see all files from my project in the master and nothing in the main.</p>
  <p>I have tried renaming my &quot;master&quot; branch into &quot;main&quot; but I got an error : &quot;Could not rename branch &quot;master&quot; at this time: New branch already exists&quot;.</p>
  <p>So how do I merge master into main branch ?</p>