What to do if commit message doesn't match with Regex and avoids push?
10:58 06 Jun 2021

I was trying to push the code and it says

remote: Push rejected.
remote:
remote: refs/heads/feature/ABCD-1234: 0d7591a7f67: commit message doesn't match regex: .*[A-Z]{2,}-[0-9]{1,}.*
remote:         Sample Push

What is the actual format and how do I push it? Do I need to revert back even if I do a new commit with

git commit -m "ABCD-1234 Sample Push"
git github bitbucket