How to modify a specified commit?
Asked 07 September, 2021
Viewed 561 times
  • 48
Votes

I usually submit a list of commits for review. If I have the following commits:

  1. HEAD
  2. Commit3
  3. Commit2
  4. Commit1

...I know that I can modify head commit with git commit --amend. But how can I modify Commit1, given that it is not the HEAD commit?

16 Answer