I found some topics about this, but they were helping for commits that were made just now and are still the last commits in the repository. My situation is that the commit is old. The git repository looks like that:
^
^
| "master" latest commit
| 11 other commits
| merge branch "master"
| 5 other commits
| merge branch "master"
| 2 other commits
| merge branch "master"
| THE commits which name I wish to change
All of these commits have been pushed. So it is deep down. I would appreciate if someone could give me suggestion of how to change the name and also, if the command involves HEAD~number
to tell me the number (that is why I showed the current hierarchy condition of the repository).