git commit -ammend code example Example: git commit //now commit the code git commit -m "anyMessageYouWantToWrite"