Skip to content

Instantly share code, notes, and snippets.

@luizomf
Created February 13, 2021 19:24
Show Gist options
  • Select an option

  • Save luizomf/3b403214f000931af9f4de72ea967b1e to your computer and use it in GitHub Desktop.

Select an option

Save luizomf/3b403214f000931af9f4de72ea967b1e to your computer and use it in GitHub Desktop.
Comandos para configurar chaves SSH no Windows para Github
# Criar chaves ssh
ssh-keygen -t rsa -f "/c/Users/seu-usuario/.ssh/nome-chave" -C '[email protected]'
# Quando fechar o terminal preciso executar isso
eval "$(ssh-agent -s)"
ssh-add /c/Users/seu-usuario/.ssh/nome-chave
# Iniciando o git
git init
git config --global user.name "SEU NOME"
git config --global user.email "[email protected]"
git remote add origin [email protected]:CAMINHO-COPIADO-DO-GITHUB-SSH
# Editei
git add .
git commit -m 'MENSAGEM'
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment