Github does not show author rights of commit

I have an account on github and I am the owner of the organization.

I don’t understand why, when I do 'git commit' a then 'git push', the web page shows the name of the organization as the author of the commit.

When I run 'git push', I use the username and password of my account.

thanks

+4
source share
2 answers

The commit user will not be affected by git push , you need to commit it as the correct user.

You can set this by following these steps:

 git config --global user.name "My Name" git config --global user.email me@example.com 

If you want to fix the last existing commit (which was NOT pressed), you can do

 git commit --amend --reset-author 
+7
source

Go to the project folder.

In the ".git / config" section you can see your information.

 [user] name = xxx email = xxx 

Your information may be incorrect.

+3
source

All Articles