title: 'git init -b <branch name>' command in terminal is throwing an 'unknown switch' error
body: <p>I am trying to add an existing project to GitHub using the command line. I am in the relevant working directory in the terminal and am trying to use the <code>git init -b main</code> command.</p>
  <p>Initially, I was getting an error relating to xcode:</p>
  <pre><code>xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
  </code></pre>
  <p>I tried <code>xcode-select --install</code> but the software was unavailable from the update server, so I downloaded 'Command Line Tools for Xcode 12' from <a href="https://developer.apple.com/download/more/" rel="noreferrer">https://developer.apple.com/download/more/</a>.</p>
  <p>Now on entering <code>git init -b main</code> I am getting the following:</p>
  <pre><code>error: unknown switch `b'
  usage: git init [-q | --quiet] [--bare] [--template=&lt;template-directory&gt;] [--shared[=&lt;permissions&gt;]] [&lt;directory&gt;]
  
  --template &lt;template-directory&gt;
                        directory from which templates will be used
  --bare                create a bare repository
  --shared[=&lt;permissions&gt;]
                        specify that the git repository is to be shared amongst several users
  -q, --quiet           be quiet
  --separate-git-dir &lt;gitdir&gt;
                        separate git dir from working tree
  </code></pre>
  <p>I am running git version: 2.24.3 (Apple Git-128)</p>
  <p>Any help much appreciated!</p>