Here are the steps that i took to solve the issue and you can try also
- Open git bash terminal
- type
ssh-keygen
and hit enter
- then terminal will ask to enter the file name to save the rsa key.you can hit enter not
-typing anything
- After that terminal will ask for other information too. without typing anything just hit enter By completing every steps a rsa key will be generate in the mentioned file.
- Go to
C:\Users\<username>\.ssh
and open a file named id_rsa.pub
in notepad and copy the key
- then go to your github account
Settings
and select the option SSH and GPS keys
.
- Create a new ssh key with a title and the key you just copied (you just generated) hit save now if you try to push by
git push origin master
I hope you wont get any error