How can I modify existing, unpushed commit message?
by mistake i write wrong message in git commit. Commit has not pushed yet
how can i modify or change commit message?
how can i modify or change commit message?
Please pay attention to update your answer.
Update Your Answer care fully. After saving you can not recover your old answer
If your commit is not pushed on the remote repository. You can use the below command to modify the commit message.
git commit --amend -m "correct message"Please pay attention to update your answer.
Update Your Answer care fully. After saving you can not recover your old answer
To change the last unpushed commit message, run:
git commit --amend -m "New commit message"
This updates the previous commit message safely (since it’s not pushed yet).
Similar Questions
Popular Tags
Popular Questions
Newly Asked Questions
