Search code examples
gitintellij-idea

Change commit message in intellij after push


I pushed my git commit and realised the commit message is incorrect. How can I change the commit message from Intellij? I am the only one using the remote feature branch with this commit. What are the drawbacks of doing this?


Solution

  • You can use Edit commit message action in Git Log in IDE as mentioned here: https://www.jetbrains.com/help/idea/edit-project-history.html#reword-commit

    Then you can do a force push as mentioned here Ctrl/CMD+Shift+K or Git | Push and then click on an arrow next to Push button and click Force push enter image description here