Created
February 13, 2021 19:24
-
-
Save luizomf/3b403214f000931af9f4de72ea967b1e to your computer and use it in GitHub Desktop.
Comandos para configurar chaves SSH no Windows para Github
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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