I inadvertently committed code without a JIRA ticket in the commit message and I am not able to push any code. In the past if this happened, I used the "Amend last commit" feature in source tree, but this is a different situation, where the faulty commit was two commits back, so I am not able to figure out how to add the JIRA issue ticket to that commit. To explain the issue a bit further, here's an example
- Commit 1 Message (did something)
- Commit 2 Message (did something again JIRA-123)
How do I fix "Commit 1 Message" to have an issue? Is there another way to resolve this? Thanks!