# Change The Author of Git Commits

1.  Identify one revision before the commit you need to update. In the following example, the last two commits are going to be updated.  
    ![CommitLogs](https://cdn.hashnode.com/res/hashnode/image/upload/v1715929181802/03a42a40-c6b2-4abb-adef-47f3566f2881.png)
2.  Run git rebase command with the identified commit number:  
    **`git rebase -i 2778751`**
3.  In the editor, for each commit you need to update, change the word **`pick`** to **`edit`**. (Make sure you know how to use the Vim editor)
4.  Run the following command to set the author to the current configured git user:  
    **`git commit --amend --reset-author --no-edit`**  
    Or use the following to set it to a custom author:  
    **`git commit --amend --no-edit --author="Author Name <email@address.com>"`**
5.  Run **`git rebase --continue`**
6.  Repeat step 4 and 5 until all of the commits are updated.
