So guys if you're on windows just like me and you are using git and want to push changes to remote repository on github without typing email and password everytime then first y'all have to generate SSH keys same as we generated in linux and then add the generated public key on the GITHUB account so we don't have to provide email password everytime we want to push something on github.
Just run this command to generate the SSH keys locally first.
This command basically creates a directory named .ssh to go to this directory use this command.
NOTE Those two commands must be ran using git-bash.
After navigating into the directory you will find that it has three files.
Only id_rsa.pub is of our use it is actually the public key and we have to upload the content of the id_rsa.pub file to this github link.
That's it. :D
Just run this command to generate the SSH keys locally first.
ssh-keygen -t rsa -b 4096 -C "YOUR@EMAIL.com"
This command basically creates a directory named .ssh to go to this directory use this command.
cd ~/.ssh
NOTE Those two commands must be ran using git-bash.
After navigating into the directory you will find that it has three files.
1 2 3 | id_rsa id_rsa.pub known_hosts |
Only id_rsa.pub is of our use it is actually the public key and we have to upload the content of the id_rsa.pub file to this github link.
That's it. :D
No comments:
Post a Comment