title: How can I create a Git repository with the default branch name other than "master"?
body: <p>In the <a href="https://git-scm.com/book/en/v2/Git-Branching-Remote-Branches" rel="noreferrer">Pro Git book</a>, it says</p>
  <blockquote>
  <p>“origin” is not special</p>
  <p>Just like the branch name “master” does not have any special meaning in Git, neither does “origin”. <strong>While “master” is the default name for a starting branch when you run git init which is the only reason it’s widely used</strong>, “origin” is the default name for a remote when you run git clone. If you run git clone -o booyah instead, then you will have booyah/master as your default remote branch.</p>
  </blockquote>
  <p>That means, we can use our default branch name as <em>main</em> or <em>main-branch</em> or something like that. I didn't see any option in <code>man git-init</code> which will initialize my <code>repo</code> with a different default branch name.</p>
  <p><a href="https://help.github.com/articles/setting-the-default-branch/" rel="noreferrer">GitHub shows how to set the default branch name</a> in its settings page. But I am not talking about how to set it on any specific <em>Git hosting site</em>. I am strictly asking in terms of Git only, not in regards to any specific <em>Git hosting site</em>.</p>
  <p>Is there a way to do that?</p>