ホーム > 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.

Table Of Contents

  1. Summary

⇨ Click here for the table of contents for Vue articles

⇨ Click here for the table of contents for React articles

⇨ Click here for the table of contents for Laravel articles

$ 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!