In git it’s pretty easy to accidentally commit with the wrong details
git config -l --show-origin
shows you where settings are from
git config --local --get-all user.name
git config --global --get-all user.name
git config --system --get-all user.name
can be used to get configuration options with different scopes
To change ID of last commit:
git commit --amend --reset-author