I installed git
my MacBook Pro and built a basic iOS project and then made commits to the repository.
But, now when I'm trying to trace the commits that I made, it displays my full name instead of my username on the commits and I can't click to check what is wrong with it.
It is showing the commits on the repository but when I view my commits for the day, it is showing nothing on my timeline.
This has never happened with me on Git before. Please help, I'm really confused. What did I do wrong?
This has happened to me as well. This usually happens if your git has a different user.email
& user.name
set than your remote(GitHub) account. When you commit from your local machine, GitHub sees a different person committing rather you.
Please open your command line and type git config -l
. This will show you what email id and name you are using. Like this:
$ git config -l
user.email=myemail@email.com
user.name=Debadipti Patra
Check if this matches with your GitHub account. If not change the global value entering this:
$ git config --global user.email "you email"
$ git config --global user.name "you name"
and confirm by $ git config -l
Try committing to your repository. Hopefully that works. But unfortunately, that don't fix your past commits, those will still not be there on your timeline.
Please share if it did work. It helps other users as well.