you are viewing a single comment's thread
view the rest of the comments
[–] 8 points 11 months ago (1 child)

If you haven’t already found it, you need to change your global git config (~/.gitconfig):

git config --global init.defaultBranch main

(or whatever you want to call it; e.g. daddy would work too)

For any existing repositories you want to run the following command in the existing repository root (./.git/config):

git config set init.defaultBranch main

  • source
  • parent
  • hideshow 1 child comment