title: Can't change git default branch to main on the command line
body: <p>I've read on several sites that you can use <code>git config --global init.defaultBranch main</code> to change the default branch (from master) to main. But it doesn't work for me. Here it's from my terminal (my os is ubuntu):</p>
  <pre class="lang-none prettyprint-override"><code>$ git config --list
  user.email=*************
  user.name=********
  credential.helper=store
  core.editor=nano
  
  $ git config --global init.defaultBranch main
  $ git config --list
  user.email=*************
  user.name=*************
  credential.helper=store
  core.editor=nano
  init.defaultbranch=main
  
  $ mkdir testrepo
  $ cd testrepo
  $ git init
  Initialized empty Git repository in /home/user/Desktop/testrepo/.git/
  
  $ git status
  On branch master
  No commits yet
  nothing to commit (create/copy files and use &quot;git add&quot; to track)
  </code></pre>