Sometimes you did make a commit, but forget to add the ticket number into the commit message, or realized that the commit message is incorrect or contains some spelling mistakes. In git, you can easily change the last commit message without changing any files, just with one line.
git --amend -m "your new commit message"
if you will not provide -m flag and text message you will have to type a new message in Vim
Alex Shapovalov is a founder of Yaplex – an IT consulting and software development company, located in Ontario, Canada. Alex provides IT consulting and .NET software development services in Canada and the USA.