Thursday, 2 March 2023

how to clone repo using ssh

1. Generate public key
To generate public key 1st install the github and in the github terminal type 
ssh-keygen -t rsa -b 2048
It will store your public key in the default folder. It will show you folder name where it has stored. 
2. Add public key in github :
To add open github and on profile picture click and go to preference > ssh keys

And here give title and copy .pub ssh key and paste it here. 

3. Now you'll be able to pull and push the changes in github