1

I'm pushing some commits through Terminal in Fedora but seems that GitHub isn't recognizing my user.

I saw the commits history to check what's wrong, then I realize that the commiter's name is different than my official GitHub's username.

Then I ask: what's the problem and how can I solve that?

I'm sure is something related to my user in .git or remote configurations. Anyway, I didn't found anything on the web that could help me.

Guilherme Oderdenge
  • 4,935
  • 6
  • 61
  • 96

2 Answers2

1

Set your email address to the one registered to GitHub.com. If you want to fix up the old commits, you'll have to change history and do a force push. This is only recommended if you are working on a private repo.

Community
  • 1
  • 1
Jeff Brateman
  • 3,229
  • 2
  • 20
  • 26
0

You need to set your global Git settings so that they match your GitHub user settings (only the mail has to match, but you might as well set both):

$ git config --global user.name "Your name"
$ git config --global user.email "Your@mail.com"

By using the --global option you are telling Git to always use that information for anything you do on your system.

You can confirm that the settings were changed by doing:

$ git config user.name
Your name
$ git config user.email
Your@mail.com
e h
  • 8,435
  • 7
  • 40
  • 58