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

git modify last commit author #227

Open
JiangWeixian opened this issue Jan 20, 2022 · 0 comments
Open

git modify last commit author #227

JiangWeixian opened this issue Jan 20, 2022 · 0 comments
Labels
🐙 git tips about git cli

Comments

@JiangWeixian
Copy link
Owner

JiangWeixian commented Jan 20, 2022

git commit --amend --author="Author Name <[email protected]>" --no-edit

after that, change entire project commit.

git rebase -r --root --exec "git commit --amend --no-edit --reset-author"

Author Name <[email protected]> is newer author info.

refs: https://stackoverflow.com/questions/750172/how-do-i-change-the-author-and-committer-name-email-for-multiple-commits

@JiangWeixian JiangWeixian added the 🐙 git tips about git cli label Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐙 git tips about git cli
Projects
None yet
Development

No branches or pull requests

1 participant