ホーム > Other > How to Rewrite the Comment of the Previous Commit【Git Operation】
Other

How to Rewrite the Comment of the Previous Commit【Git Operation】

Thank you for your continued support.
This article contains advertisements that help fund our operations.

This is how to rewrite the comment of the previous commit in Git operation.

How to Modify the Most Recent Commit Message

$ git add .
$ git commit -m "Oops, I made a mistake!"
$ git commit --amend -m "Fixed the CSS for the header"

Summary

It may be a well-known topic, but I have left it here as a memo for myself.

Please Provide Feedback
We would appreciate your feedback on this article. Feel free to leave a comment on any relevant YouTube video or reach out through the contact form. Thank you!