I fixed some code and pushed it with an incorrect commit message. When I tried to fix the commit message, by accident I reverted the commit. The situation is now:
- latest commit = correct commit message, but changes of previous commit undone
- previous commit = correct commit content, but wrong commit message
All of this has already been pushed to the server.
I would like to get rid of the latest commit, change the commit message of the previous commit and push that back to the server.
I'm happy with solutions for Atlassian Source Tree but also command line is okay.