Skip to content

Document manual steps required to fix commit email attribution#1

Closed
Copilot wants to merge 28 commits intomainfrom
copilot/fix-commits-email-link
Closed

Document manual steps required to fix commit email attribution#1
Copilot wants to merge 28 commits intomainfrom
copilot/fix-commits-email-link

Conversation

Copy link

Copilot AI commented Jan 12, 2026

Commits made with admin@example.com are not linked to the nesarw GitHub account. History rewriting requires force push, which is blocked in this automated environment.

Manual Steps Required

Run locally to rewrite commit authorship:

git filter-branch --env-filter '
if [ "$GIT_AUTHOR_EMAIL" = "admin@example.com" ]; then
    export GIT_AUTHOR_EMAIL="64674864+nesarw@users.noreply.github.com"
    export GIT_COMMITTER_EMAIL="64674864+nesarw@users.noreply.github.com"
fi
' --tag-name-filter cat -- --branches --tags

git push --force --all

Or use git-filter-repo (cleaner):

pip install git-filter-repo
git filter-repo --email-callback 'return b"64674864+nesarw@users.noreply.github.com" if email == b"admin@example.com" else email'
git push --force --all
Original prompt

Existing commits not linked to me
I have already pushed commits with the wrong email,
rewrite history Force push with this account github email


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

nesarw and others added 27 commits December 30, 2025 14:25
Copilot AI self-assigned this Jan 12, 2026
Copilot AI changed the title [WIP] Fix commit history to link correct email Document manual steps required to fix commit email attribution Jan 12, 2026
Copilot AI requested a review from nesarw January 12, 2026 09:51
@nesarw nesarw closed this Jan 12, 2026
@nesarw nesarw deleted the copilot/fix-commits-email-link branch January 12, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants