I’ve been working on a new web app lately and decided to allow users to sign up and log in with their GitHub account. I’m using go-github to interact with the GitHub API and with this library there are two different ways to get a user’s email address.
If you are using GitHub for Windows with non-GitHub repositories, you may have run into the limitation that you cannot sync using an SSH key with a passphrase. One workaround is to push/pull from the shell, but if don’t mind removing the passphrase from the key, use the following command.
ssh-keygen -p -P "my_old_password" -N “” -f my_key_file_name
After you remove the passphrase you should be able to sync from within the GitHub for Windows client.