A similar confusion occurred on the main Git list very recently (https://lore.kernel.org/git/710dc612-0e3f-bf10-b123-f9443e605...@gmail.com/).
There are three types user 'security going on here/there.: 1. SSH security across the link between server and user 2. 'username & email' for the "signed-off-by:" annotation in commits, if required - an assertion of legal authority to contribute 3. PGP style cryto signature - the association of the particular text with the particular user key. Your config error matches the type 2 legal 'security' and is a human, less precise, standard of identity, as would be established in a law court. If you are able to correct your config and amend your commits, then that would be ideal, but sometimes your commits have escaped into the wild, but folks still (in general) know it is you. Hope that helps (HTH) On Wednesday, November 24, 2021 at 1:36:55 PM UTC bisht.a...@gmail.com wrote: > Hey there, I'm Ayush. I'm using git since 2 years and today I found an > issue. > I was cloning a repo with SSH key, and after that I locally config that > repo with an email. But the problem is that, I have entered the wrong email > which belongs to an account. So when I committed some changes , I found > that the commit was done by that user (with that wrong email ) on that > repo. at github. > > I think it should not be the case. > I want to know more about this, and if it needs to fix then I would love > to work with you. > > > how I encountered the issue: > > 1. git clone git@some_repo > 2. cd repo > 3. git config --local user.email "someone_email" > 4. git checkout -b branch/dev > 5. # make some changes > 6. git add . > 7. git commit -m "first commit" > 8. git push origin branch/dev > > > Thanks > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/2e37e276-16c3-4f33-bd88-05a451e03c84n%40googlegroups.com.