title: Alias git branches to replace "master" with "main"
body: <p>I work on a bunch of different repos - many of them use <code>master</code>, and many of them use <code>main</code>.</p>
  <p>I also have various shell aliases set up for git commands, e.g. <code>gcm</code> for <code>git checkout master</code>.</p>
  <p>The problem is that I cannot use these aliases on repos where <code>master</code> doesn't exist. It's obviously not a big deal, because I just need to type out the command manually in that case, but it's slightly annoying.</p>
  <p>I am wondering if there's a way I can &quot;alias&quot; branches in git, so when I say <code>git push origin master</code> it can just automatically replace that with main.</p>