I changed my name and last name and made commits but logs in my .git directory still shows my old names for the new commits

Hello there, as the title says I changed my gitlab username, name and last name then made new commits however in my .git/logs/HEAD file I still see my old name with the new commits. Is there a way to change that?

Nevermind, I solved it by changing the name in the .gitconfig.