Sobes.tech
Junior

How do you perform code commits?

sobes.tech AI

Answer from AI

When committing code, I follow these rules:

  • Write a meaningful and concise message that reflects the essence of the changes.
  • Use imperative mood, for example: "Add form validation".
  • Break work into logical commits so that each commit solves one task.
  • Before committing, ensure that the code works and passes tests.

Example of a commit message:

fix: correct email validation error in registration form

Or

feat: add button component with support for different styles