Git/Amend

From Omnia
< Git
Revision as of 20:41, 23 November 2026 by Kenneth (talk | contribs) (Created page with "== Amend == (similar to annotate / amend commit message) Changing a commit message, and/or files [https://help.github.com/articles/changing-a-commit-message/] git commit --amend Change author: git commit --amend --author="Author Name <email@address.com>" Changing an older commit with rebase: [http://stackoverflow.com/questions/3042437/change-commit-author-at-one-specific-commit] <pre> git rebase -i [change_set_prior_to_target] # change "pick" for target changesets...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Amend

(similar to annotate / amend commit message)

Changing a commit message, and/or files

git commit --amend

Change author:

git commit --amend --author="Author Name <email@address.com>"

Changing an older commit with rebase:

git rebase -i [change_set_prior_to_target]
# change "pick" for target changesets
git commit --amend --author="Author Name <email@address.com>"
git rebase --continue
# or
git commit --amend --reset-author --no-edit

Reset Author

git commit --amend --reset-author