how to switch author bash code example
Example 1: Change Git commit user name and author
git commit --amend --author="Author Name <[email protected]>"
git rebase -i B
git rebase -i --root
git commit --amend --author="Author Name <[email protected]>"
git rebase --continue
git commit --amend --author="Author Name <[email protected]>"
git rebase --continue
git push -f
Example 2: git reset commiter credentials
git commit --author="John Doe <[email protected]>"
Example 3: git reset commiter credentials
$ git config --global user.name "John Doe"
$ git config --global user.email "[email protected]"