I have an issue with git and my terminal.
Here's a gallery to show you my issue : http://imgur.com/a/6RrEY
When I push commits from my terminal, git says I push them with another username, that's a user from my organisation (my company) with no commit at all and it seems it belongs to no one : (check gallery first pic)
But this doesn't happen when I use Github for mac, in the feed I see the commits pushed by myself.
The problem also affects my personal repositories, my terminal says that I don't have the permission to push commits on those repositories (which is obviously wrong) since it tries to push it with this user : (check gallery second pic)
Guess what ? This doesn't happen with Github for mac too.
I changed my computer to a brand new one few days ago, so I reset'ed all my ssh key of github and left only a new one generated by Github for Mac so I don't think that there's some ghost user/ssh key hidden somewhere, this hdd is brand new : (check gallery third pic)
My .gitconfig file is all clear, there's only my credentials : (check gallery fourth pic)
I really don't get it, help, StackOverflow, you're my only hope.
(My apologies for my poor Gimp skills and the Star Wars reference)
ssh -T firstname.lastname@example.org
git log --pretty="%h %an %ae"
remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/USER/REPO.git/'
git config --global push.default simple
Despite all the great options given by other users, the only way to fix this was to reinstall git completely and type
git config --global push.default simple to rewrite good credentials.