Search code examples
githubgit-commitgit-push

GitHub not showing my profile


Github show my user name but it is disable. but when I commit other project there show my name. I don't know what is the issue here

enter image description here

and project not showing my account is contributor

contributor should be showing 3 but it still showing 2 not showing me

what should I do ?


Solution

  • You should check your commit author name and email, which derives from your lcoal configuration user.name and user.email.

    For GitHub to show your GitHub user, you need the exact name and email of your GitHub account when creating commits.

    In your local repo, type:

     git log --pretty=format:"%H %an %ae %ad" --date=short
    

    an and ae stands for author name and author email.

    If you are alone working on the repo, you can amend author/email for your local commits, and then git push --force.