Jonathan Ishii
Jonathan Ishii

Reputation: 397

Github not recognizing my account when i commit

When push commits to Github on my windows computer, Github doesn't recognize my account commits, but when i do it on my mac it does.

Already checked that my email address is the same on my PC as on Github as well as it being config as the global email address for my computer.

The last commit is showing from my mac and im getting credit for it and the first 2 are from my PC where it is showing my name but not my account. https://ibb.co/VVsjsGR

Upvotes: 5

Views: 2124

Answers (2)

Khoyo
Khoyo

Reputation: 1247

From looking at your ForniteKillFeed repo, you have some commit attributed to Jonathan Ishii <[email protected]@yahoo.com>...

This is probably not your real email address, so make sure to run git config --global user.email YOUR_EMAIL_ADRESS with a correct email address...

Upvotes: 1

naib khan
naib khan

Reputation: 1118

First of all You need to make sure your git config for username and password is OK.If it is not set then set like:

git config --global user.name 'your username'
git config --global user.password 'your password'

Then you need to add your ssh key to your git hub account.

Check your existing SSH keys:

Open Terminal and Enter command :

$ ls -al ~/.ssh

The filenames of the public keys are one of the following:

id_dsa.pub 
id_ecdsa.pub
id_ed25519.pub 
id_rsa.pub
  1. If you don't have an existing public and private key pair, or don't wish to use any that are available to connect to GitHub, then generate a new SSH key.
  2. If you see an existing public and private key pair listed (for example id_rsa.pub and id_rsa) that you would like to use to connect to GitHub, you can add your SSH key to the ssh-agent.

For quick reference see how to add a new SSH key to your GitHub account

Upvotes: 3

Related Questions