Linking account to github

I just tried logging in through github and it created a new account for some odd reason, I logged in using the email method and I still have all my progress, how do I link my github account to my current account?

FCC accounts are identified by email address. If your GitHub account is associated with a different email address than your FCC account, then it will be associated with a different account.

How can I tell which account its associated to?

Whatever email address you use to log in.