Skip to content

Instantly share code, notes, and snippets.

View umarcor's full-sized avatar

Unai Martinez-Corral umarcor

View GitHub Profile
@umarcor
umarcor / git.md
Last active September 19, 2019 09:49
git cheatsheet

Amend (reset) the author of multiple commits at once

git rebase -i <COMMIT_SHA> -x "git commit --amend --reset-author -CHEAD"

For example:

git rebase -i HEAD~3 -x "git commit --amend --reset-author -CHEAD"