Let's assume i have 3 commits:
Added bar.txt (3)
Second Commit (2)
Initial Commit (1)
How can i change the commit message from (2)
by using its SHA ID?
The commit was not pushed to the remote repository yet.
I tried: git commit --amend -m "Added foo.txt" 8457931
8457931
are the first 7 numbers from the SHA ID.
Reason why this is not a duplicate: I ask on how to change the commit message by using the SHA ID to point at the commit which i would like to change, unlike in the linked question.