Skip to content

Instantly share code, notes, and snippets.

@pedrosancao
Last active March 3, 2021 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pedrosancao/24f7f32491fc53e28c6a2811e444adaa to your computer and use it in GitHub Desktop.
Save pedrosancao/24f7f32491fc53e28c6a2811e444adaa to your computer and use it in GitHub Desktop.
Configurando seu Git para inicar com "main"

Consulte sua versão do Git:

git version

Se for 2.28+ use o comando:

git config --global init.defaultBranch main

Caso contrário crie um alias "git ini" sem a letra "T":

git config --global alias.ini "\!git init && git checkout -b main"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment