Github / Korean version of readme
Until now, github has been a space for one person to write project code or blog posts.
Therefore, I didn't care about the contents of the commit message,
Recently, as I worked with my friend, I felt the need to unify the commit message
When we worked together, we didn't pay attention to commit messages, so we had the following problems.
- Can't see what they've done to each other at a glance.
- Must read the code for what the other person has worked on.
Each person doesn't have to match the message perfectly, but
It is important to write it in a uniform way so that you can see what you've done with just a message.
The following are the reasons why rules are required when creating commit messages.
- Communication with team members
- Convenient historical tracking
- Issue Management
Let's organize the contents one by one when writing a commit message.
The overall format is as follo
The commit shows what the action is for through the keyword.
Title of the commit message.
- The title does not exceed 50 characters and does not have a period.
- Create a commit type in the title together.
- Write in command tone without using the past tense.
- The title and body are separated by a single line.
- The first letter of the title must be capitalized.
- If it is related to an issue, add the issue number.
Feat: Added new RFID recognition capabilities
The body of the commit message.
- It is optional and does not need to be written to all commitments.
- You must not exceed 72 characters per line.
- Focus on what and why rather than how to write the content.
- In addition to the description, you also create a reason for the commit.
Added new RFID feature recognition functionality
- RFID Reader.java: Added RFID recognition due to user requirements
The conclusion of the commit message. If there's no issue..
- It is optional and does not need to be written to all commitments.
- Use to add an ID to track an issue.
- Resolved - Resolved Issue ID
- Related - Issue ID associated with the commit
- Note - Issue ID for reference
Resolution: #123
Related: #321
Note: #222
Feat: Added new RFID recognition (#123)
Added new RFID feature recognition functionality
- RFID Reader.java: Added RFID recognition due to user requirements
Resolution: #123
Writing commit messages well is a basic habit in collaboration.
If you know I can't see other people's work at a glance
Others should also be aware that it is difficult to grasp the contents of the commit I have written.
If I can work with the above convention in the team, I think I can figure out the history and solve the code review in a short time.
- use lower case
- use dashes
- be specific
- be consistent