Git Error: Similar to -> You can only commit if your email is one of the verified emails

PHOTO EMBED

Tue Oct 17 2023 06:10:38 GMT+0000 (Coordinated Universal Time)

Saved by @hardikraja #commandline #git

Error: Similar to -> You can only commit if your email is one of the verified emails

In your terminal, navigate to the repo you want to make the changes in.
Execute git config --list to check current username & email in your local repo.

Check the username -> git config [--global] user.name
Check the email -> git config [--global] user.email

Change username & email as desired. Make it a global change or specific to the local repo:
git config [--global] user.name "Full Name"
git config [--global] user.email "email@address.com"
git config [--global] user.password "your password"

Per repo basis you could also edit .git/config manually instead.
Done!

Then execute ->
git commit --amend --reset-author --no-edit
content_copyCOPY

https://superuser.com/questions/1419625/gitlab-you-cannot-push-commits-for-you-can-only-push-commits-that-were-commit