-
Commit every time you make a meaningful change in the code.
-
Provide a subject that specifies your code's action.
-
Limit the subject line to 50 characters.
-
Capitalize the subject line.
-
Do not end the subject with a period.
-
Use the imperative mood in the subject line.
-
Imperative means spoken or written as if giving a command or instruction.
-
Eg.
Fixed a bug on... -> wrong Fix a bug on... -> correct
-
-
Seperate the subject from body with a blank line.
-
Wrap the body at 72 characters.
-
Use the body to explain what and why vs how.
-
Avoid using vague commit messages such as 'saved' or 'updated'.