Skip to content

Como configurar o Git

willmenn edited this page Jul 23, 2015 · 3 revisions

Using git bash with github tutorial:

Step 1: check if there is any ssh key already instaled.

ls -al ~/.ssh

Step 2: Generate a new SSH key

ssh-keygen -t rsa -b 4096 -C "[email protected]"

Enter file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]

Enter passphrase (empty for no passphrase): [Type a passphrase]

Enter same passphrase again: [Type passphrase again]

Your identification has been saved in /Users/you/.ssh/id_rsa.

Your public key has been saved in /Users/you/.ssh/id_rsa.pub.

The key fingerprint is:

01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db [email protected]

Step 3: Add your key to the ssh-agent

cd ~/.ssh

eval $(ssh-agent)

ssh-add ~/.ssh/id_rsa

Step 4:

clip < ~/.ssh/id_rsa.pub

Copies the contents of the id_rsa.pub file to your clipboard

Step 5: Test connection

ssh -T [email protected]

Step 6: Add SSH key into your repositorie

Go to Settigns

Deploy Key

Paste the SSH key on the text field, and "Add Key".

References:

GitHub tutorial for SSH Keys(07/2015)

StackOverFlow how to conect to agent SSH (07/2015)

Como configurar o Meld como o programa para fazer o diff:

Downloading and Installing Meld in Ubuntu