github pr review tool highlight mutliple lines code example
Example: git change multiple comments
Update the author details of historical commits
Firstly, we'll need to update the commit author in our local Git config:
$ git config --global user.name "Robert Lyall"
$ git config --global user.email "[email protected]"
Then, reset the author of all commits after a specific commit:
$ git rebase -i 956951bf -x "git commit --amend --reset-author -CHEAD"
You'll then be presented with your editor where you can confirm all the commits you want to change.
pick bef03ed Revert "Add the correct link to Brie"
exec git commit --ammend --reset-author -CHEAD
pick 74dd8b3 New folder
exec git commit --ammend --reset-author -CHEAD
pick 56aedbe remove old folder
exec git commit --ammend --reset-author -CHEAD
Check through the commits in the list, and hit ctrl+x, followed by enter to apply the changes.