This problem started today; it didn’t happen before. Many times, it just doesn’t recognize the changes made to the files and gives the “No changes to commit“.
The workaround I found is to edit any random file and try again.
We shouldn’t depend on such workarounds, should we?