Download and Install
Acesse e faça o download:
Configure o usuário e e-mail
Depois da instalar é preciso abrir o console de comando git
$ git config –global user.email “seuemail@dominio.com”
$ git config –global user.name “gitusername“
Gerando a chave (key)
Abra o console, coloque o e-mail do github.com no exemplo abaixo e gere a chave:
$ ssh-keygen -t rsa -b 4096 -C “seu_email@dominio.com” [enter]
Enter para gerar o arquivo chave
Depois insira a senha do seu github
$ ssh-agent -s [enter]
$ exec ssh-agent bash [enter]
$ eval ssh-agent -s [enter]
$ eval $(ssh-agent -s) [enter] (semelhante à linha acima)
$ ssh-add ~/.ssh/id_rsa [enter]
$ clip < ~/.ssh/id_rsa.pub [enter]
A chave agora está no nosso Ctrl+V
Agora, e finalmente, entre no webiste GitHub > Settings > SSH Keys > add SSH Keys
Cole com Ctrl+C a chave
Sistema UNIX (talvez no windows)
Salvar usuário po 8h
$ git config –global credential.helper ‘cache –timeout=28800’
Salvar usuário permanentemente
$ git config –global credential.helper cache
Trabalhando com Git
Artigo com as funções básicas do git.
fontes:
https://help.github.com/pt/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
http://gabsferreira.com/instalando-o-git-e-configurando-github/
https://help.github.com/pt/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account