Skip to content

Instantly share code, notes, and snippets.

@israelcena
Created October 10, 2023 08:58
Show Gist options
  • Save israelcena/dc99804845f959342c0b1299db6efe77 to your computer and use it in GitHub Desktop.
Save israelcena/dc99804845f959342c0b1299db6efe77 to your computer and use it in GitHub Desktop.
git config file
[user]
name = israelcena
email = israelsjm@gmail.com
signingkey =
[commit]
gpgsign = true
[init]
defaultBranch = main
[core]
editor = code --wait
[alias]
s = !git status -s
c = !git commit -S -m
ac = !git add --all && git commit -S -m
acp = !git add --all && git commit -S -m && git push
l = !git log --graph --pretty=format:'%C(auto)%h %C(bold yellow)%d%Creset%C(white)%s%Creset - %C(cyan)%cn%Creset, %C(green)%cr'
[credential]
helper = /mnt/c/Program\\ Files/Git/mingw64/bin/git-credential-manager.exe
@israelcena
Copy link
Author

also need install credential-manager before

@israelcena
Copy link
Author

comando: git config --global user.name “nomedousuario”
obs: se der tudo certo o console não amostrará nada.

configurando o email
comando: git config --global user.email “emaildousuario”

para exibir o nome do usuário
comando: git config user.name

para exibir todas as configurações
comando : git config --list

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