6

I've been searching Google and cannot find anything on this error.

Here is the full error:

git commit -m "update ui" INVALID COMMIT MSG: does not match "type scope: subject" ! was: "update ui" Note: scope must be only letters. 

1 Answer 1

18

You have a commit-msg hook on your system that is enforcing a format on your commit message. This is presumably company policy of some kind.

Sign up to request clarification or add additional context in comments.

2 Comments

Correct. And in this case, the required format is scope: message where scope must be only letters (I am guessing no digits or whitespace).
Thanks, this was definitely the case.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.