Reputation: 397
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
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
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
For quick reference see how to add a new SSH key to your GitHub account
Upvotes: 3