How to change commit message in Git?

How to change commit message in Git?

Change, Commit, Git, Message, Modify

36 | 0 | 0

To change commit message we use following command:

$ git commit --amend

It will open our editor and allow us to change the commit message of the most recent commit.

We can set the commit message directly in the command line with following command:

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

 

Comments (0)

🤔

No comments yet, be the first to help

Welcome to CodePits.

CodePits provide a collection of tutorials about many programming languages like PHP, Laravel Framework, Codeigniter Framework, Mysql Database, Bootstrap Front-end Framework, Jquery, Node JS, Ajax Example, APIs, CURL Example, Composer Packages Example, AngularJS, Ionic Framework, etc. 🙌

Other Posts

Categories

Tags

Comment