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.

Revisions

  1. luizomf created this gist Feb 13, 2021.
    17 changes: 17 additions & 0 deletions github-e-chaves-ssh-windows
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    # 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