# git revision control system ## Specific actions ### Changing the email address for commits in the repo Before you do this, be sure to `git config user.email `. #### The last unpushed commit ```bash git commit --amend --author="username " ``` #### All commits This will rewrite a bunch of the history. Try not to do this on public repos that you share with others. From https://stackoverflow.com/a/60364176 * Install [filter-repo](https://github.com/newren/git-filter-repo) * Use the following: ```bash git filter-repo --email-callback 'return email.replace(b"old@email.address", b"new@email.address")' ``` * This destroys the `origin` ref pointer. Put it back, then force push: ```bash git remote add origin ssh://what.evern/ git push -f ```