title: Why does "git push main" work on GitHub when "git push master" does not? Also what is difference between "Main branch" and "Master branch"?
body: <p>I tried <code>git push</code> on my master branch, but it just shows that I have a new pull request. When I click on the new pull request, it takes me to the comparing changes view, but doesn't show any option to add those changes into repository. It only shows the changes I made:</p>
  <p><a href="https://i.stack.imgur.com/FFZHQ.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/FFZHQ.jpg" alt="Screenshot of different branches" /></a></p>
  <p><a href="https://i.stack.imgur.com/OpZye.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/OpZye.jpg" alt="Screenshot of the GitHub Compare Changes view showing no changes" /></a></p>
  <p>When I entered the command</p>
  <pre><code>git push origin main
  </code></pre>
  <p>all files where added to my repository.</p>
  <p>but when I do</p>
  <pre><code>git push origin master
  </code></pre>
  <p>it doesn't work.
  Why is that? I heard they are replacing master with main. So in the future are they going to remove master?</p>