how to generate ssh key for git
Step1: in git bash type this
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
# press enter to skip the prompt or enter the details if you like for
# 1. > Enter a file in which to save the key (/c/Users/you/.ssh/id_algorithm):[Press enter]
# 2. > Enter passphrase (empty for no passphrase): [Type a passphrase]
# 3. > Enter same passphrase again: [Type passphrase again]
Step2: start the ssh-agent in the background
$ eval $(ssh-agent -s)
Step3: Add your SSH private key to the ssh-agent.
$ ssh-add ~/.ssh/id_ed25519
Step4: Generate public key
$ cat ~/.ssh/id_ed25519.pub
Step5: Copy and Paste the generate key to your github SSH key
Done!