1

I'm making changes to my repo's on Github but it says that the commits are made by aronweston when my username is aronrweston.

My main user https://github.com/aronrweston Second mystery username: https://github.com/aronweston

Every time I make commits through my IDE, it commits as the second username.

Is this normal? It doesn't say that I have made any commits on my account when I have?

1 Answers1

1

First, the commit can be made (authored) by xxx without GitHub having an account https://github.com/xxx.

Authorship (git config user.name) is not equal to authentication (the GitHub account at https://github.com/xxx)

Second, to avoid any error, make sure your git config -l --show-origin --show-scope executed in your local repository has not "local" user.name, only one global user.name.

That way, you won't have to deal with multiple authors.
As commented, the same applies for user.email.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks for the help but I'm still stuck. I get `unknown option show-scope` when entering `git config -l --show-origin --show-scope`. However, `git config -l --show-origin` shows the correct `user.name` and `user.email` – aron_weston Nov 09 '20 at 02:33
  • 1
    @aron_weston `--show-scope` is from Git 2.26 (Q1 2020): https://stackoverflow.com/a/60286340/6309, so it is a good idea to upgrade Git, if possible. What file is associated with your `user.name`? One local to your repository, or one global, set in your profile path? (`~/.gitconfig`) – VonC Nov 09 '20 at 07:19
  • Thanks for the tip, running 2.29.2 now. Only the one set of `user.name` and `user.email` set to global in the `~/.gitconfig` path. There's no local. – aron_weston Nov 09 '20 at 11:54
  • @aron_weston That is good. You want only one place where those settings are defined. – VonC Nov 09 '20 at 12:06