While using hit, it is really usual to have regrets on the commits done, especially the name used. In order to change those information in your repository, open terminal (or cmd in windows), go to the folder of your git repositoy, and run the following commands.
Remember, replace “old_name”, “new_name” and “firstname.lastname@example.org” with your own information.
git filter-branch –commit-filter ' if [ "$GIT_COMMITTER_NAME" = "old_name" ]; then GIT_COMMITTER_NAME="new_name"; GIT_AUTHOR_NAME="new_name"; GIT_COMMITTER_EMAIL="email@example.com"; GIT_AUTHOR_EMAIL="firstname.lastname@example.org"; git commit-tree "$@"; else git commit-tree "$@"; fi' HEAD
Nicholas Workshop Newsletter
Join the newsletter to receive the latest updates in your inbox.