OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

What to do if commit message doesn't match with Regex and avoids push?

  • Thread starter Thread starter Ansh Bajaj
  • Start date Start date
A

Ansh Bajaj

Guest
I was trying to push the code and it says

Code:
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

Code:
git commit -m "ABCD-1234 Sample Push"
<p>I was trying to push the code and it says</p>
<pre><code>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
</code></pre>
<p>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</p>
<pre><code>git commit -m "ABCD-1234 Sample Push"
</code></pre>
Continue reading...
 

Latest posts

Top