Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update setting-your-commit-email-address.md #34669

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,15 @@
```

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 "ID+USERNAME@users.noreply.github.com"
git rebase -i
git commit --amend --reset-author
git rebase --continue
git push
```
Loading