Reputation: 28497
I have two Github accounts: marquizzo
(personal) and tb-marco
(work).
I create repos under marquizzo
, but whenever I make a commit, they always say it's tb-marco
who made the commit. See screenshot below:
How do I make it so marquizzo
is the author from here on out? As recommended in this article, I've performed $ git config --global user.name "marquizzo"
. I've done both in global and inside the repo's folder, and still nothing changes.
I should mention that the only account that has SSH keys enabled is marquizzo
, and I have those keys stored in the computer that I'm using, so that should be the author, correct? How can tb-marco
be the author if the repo is private? Where is this setting stored, and how can I change it?
Upvotes: 0
Views: 3188
Reputation: 28497
User @Torek had the answer. Instead of changing the username in the git configuration, I had to change the e-mail address. I found the instructions on how to do this in the first-time Git setup documentation
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
Upvotes: 2