Showing posts with label git hub. Show all posts
Showing posts with label git hub. Show all posts

Tuesday, 19 April 2016

Version controller : GIT Setup.

Installing and configuring GIT

Download Git software:
Select the suitable binary file and install it. (Installation is pretty straight forward, by clicking Next Next )
You can see these three tools installed. Git Bash, Git CMD, Git GUI.
These three software are meant for same goal.

Create a Git Account:
Signup an account.

Now, We need to say Git hub that my laptop is valid to make a connection.
For this, we need to generate a SSH key in local and add the same in GitHub.

Generate ssh Key:
Open Git Bash.
Paste the text below,
substituting in your GitHub email address.
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
# Creates a new ssh key, using the provided email as a label
Generating public/private rsa key pair.
When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location.
Enter a file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]
At the prompt, type a secure passphrase. For more information, see "Working with SSH key passphrases".
Enter passphrase (empty for no passphrase): [Type a passphrase]
Enter same passphrase again: [Type passphrase again]
Here is the ssh key generates:  C:\Users\User_Account\.ssh        ( Replace User_Account with system login id)
File Name :  id_rsa.pub

Click on SSH and GPG keys link on the left hand side
Click on ‘new SSH key’ button and then copy FULL content of id_rsa.pub file and paste in the ‘key’ text and click on ‘Ass ssh key’ button.
With this, our laoptop is validated to perform pull, push operations from our github account.