Skip to content

Commit

Permalink
Update setting-your-commit-email-address.md
Browse files Browse the repository at this point in the history
If you have your public email accidentally in a new git config, you must reset commits that have this e-mail address.  This is an attempt to include this in the docs near email settings.
  • Loading branch information
zack-carlson authored Sep 20, 2024
1 parent 0a2d81a commit 110ea0c
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,15 @@ You can change the email address associated with commits you make in a single re
```

1. {% data reusables.user-settings.link_email_with_your_account %}

### Resetting commits that violate your email privacy settings

If you have accidentally committed to the repository with a public e-mail that should be private you will need to reset the author in your local commit by following these steps:

Check failure on line 118 in content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address.md

View workflow job for this annotation

GitHub Actions / lint-content

Trailing spaces

Expected: 0 or 2; Actual: 1.

```shell
git config --global user.email "[email protected]"
git rebase -i
git commit --amend --reset-author
git rebase --continue
git push
```

0 comments on commit 110ea0c

Please sign in to comment.