I did a Git commit and push, but wrote the totally wrong thing in the comment.
How do I change the comment? I have already pushed the commit to the remote.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
git commit --amendwill allow you to edit the commit message.If you already pushed that commit, you need to run
git push --force. Only do that if you are sure nobody pulled it yet!If people pulled the commit from your repo, simply leave the message as it is.