Skip to content

Instantly share code, notes, and snippets.

@Enough7
Last active May 26, 2022 15:53
Show Gist options
  • Save Enough7/9404f9018b937af49940b91583a44ad2 to your computer and use it in GitHub Desktop.
Save Enough7/9404f9018b937af49940b91583a44ad2 to your computer and use it in GitHub Desktop.
Git Change Commit History
git config user.name "New User"
git config user.email "[email protected]"

git log
git rebase -i 1f1357 # use --root to start from frist commit in History
# change the word 'pick' to 'edit' (you might want to use the shortform 'e'), save and exit

git commit --amend --reset-author --no-edit
git rebase --continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment