Skip to content

Instantly share code, notes, and snippets.

@aleduca
Last active February 25, 2025 16:45
Show Gist options
  • Save aleduca/3a3558efe4b63c95054c2a94228fbe3f to your computer and use it in GitHub Desktop.
Save aleduca/3a3558efe4b63c95054c2a94228fbe3f to your computer and use it in GitHub Desktop.
Github config

Globalmente

  1. Para configurar a conta(name) globalmente: git config --global user.name "Seu nome"
  2. Para configurar a conta(email) globalmente: git config --global user.email "Seu email"

Localmente

Dentro do Projeto

  1. Para configurar a conta(name) localmente: git config --local user.name "Seu nome"
  2. Para configurar a conta(email) localmente: git config --local user.email "Seu email"

Remover config local ou global

  1. git config --global(local) --unset user.name
  2. git config --global(local) --unset user.email

Documentação mostrada na aula

Não esqueça de escolher seu sistema operacional https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment