79783080

Date: 2025-10-05 16:35:07
Score: 0.5
Natty:
Report link

@Jadav Bheda had an answer that didn't work for me, but the link in his post helped: Amending older or multiple commit messages

I had a commit that I had just pushed, but forgot to put all of my commit notes in there with it.

My commits are long and look like this:

Large scope message of what changed

  • detailed commit message

  • detailed commit message

  • etc

First I amended the message using command line and basic VIM commands, then I force pushed the change to overwrite my previous commit. As others have stated above please be careful with this due to reasons others have stated above.

git commit --amend
git push --force-with-lease

For the VIM uninitiated:

"i" - Insert/type stuff

"ESC" - Back/Stop inserting

":wq" - Execute Write & Quit commands when finished

":q" - Quit (only works with when no changes were made)

":q!" - Quit and Discard Changes/Exit without saving
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @had
  • Low reputation (0.5):
Posted by: Devin Carpenter