puddlejumper26 / blogs

Personal Tech Blogs
4 stars 1 forks source link

How to change the commit message in GIT #50

Open puddlejumper26 opened 4 years ago

puddlejumper26 commented 4 years ago

Without Pushing

Last Commit

set the commit message directly in the command line with: [1]

git commit --amend -m "New commit message" 

:exclamation: Notice -- Make sure you don't have any working copy changes staged before doing this or they will get committed too. (Unstaged changes will not get committed.)

Reference

[1] https://stackoverflow.com/questions/179123/how-to-modify-existing-unpushed-commit-messages