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

Friday, September 13, 2019

Git : Setting up a clone project


Git Pre- Req

Computer Authentication :


Pre- Req:

Windows:

                         i.         Open https://git-scm.com/download/win
                       ii.         Install (Next > next >…)
                      iii.         Right click on select git bash option

Mac :

·       Open Terminal

Steps :


1.     Enter ssh-keygen -t rsa in your git bash prompt / terminal (type “yes” when asked and press enter key otherwise)
2.     Note down location of the file created or usually file gets created in below locations
3.     Open id_rsa.pub file
a.     For Windows :   C:\User_name\.ssh\id_rsa.pub or  C:\xxx_USER \.ssh\id_rsa.pub
b.     For Mac :          /Users/User_name/.ssh/id_rsa.pub

4.     Copy entire Contents
Eg :
ssh-rsa sadfasfldfllflamflamsflWWQEW;as
--------
--------
---------------------------------@in.xxx.com
5.    Create a new git hub account
6.     Goto Settings
7.     Click on SSH and GPG keys
8.     Click on New SSH Keys
9.     Paste the contents inside
10.  Click on Add button
11.  Create a new folder in your system with name git_test (any location)
12.  Navigate inside the folder
13.   
a.     For windows : Open git bash by right click
b.     For mac : use terminal to navigate inside the new folder using “cd command”

14.  In your terminal / git bash run command (copy link below from the git project online)
15.  Run command “cd” into the cloned folder