User Email Addresses with Go-GitHub

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 want to get the current user’s primary email address, use the Users.ListEmails() method. This method returns all the emails associated with the GitHub user and indicates whether the email address is their Primary address....

June 8, 2015

Remove a Passphrase from a SSH Key

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....

February 4, 2013