I am trying some simple code sample and I could push to my work's GitHub account if I want to, but since it is just some code sample, I thought I could just push to my personal GitHub account.
So I look at my ~/.ssh/id_ed25519.pub file, and add that content to my personal GitHub account's SSH key.
So I thought I should be able to push there, (after creating a new repo). But in Bash, it always asked me for user name and password.
How can this problem be solved? I think what the problem could be is, the email at the end of ~/.ssh/id_ed25519.pub is like susan@mycompany.com, but my GitHun account is like susan123@gmail.com (just a made up account name), but somebody told me the email address doesn't matter.
没有评论:
发表评论