티스토리 뷰

반응형

 

 

 

 Subject Line

 

  • feat (feature) : 기능 추가

  • fix (bug fix) : 버그 수정 시

  • docs (documentation) : 문서 관련 업무시

  • style (formatting, missing semi colons, …) : 빈칸 제거, 포맷 변경 등 스타일 자체 변경

  • refactor (A code change that neither fixes a bug or adds a feature)  : 버그 픽스나 기능을 추가할 때 사용된다.

  • test (when adding missing tests) : 테스트 생성 시 

  • chore (maintain) : 유지 보수

 

 

# * Use the imperative, present tense: "change" not "changed" nor "changes" ( 과거형이나 3인칭으로 사용하지않고 현재시제로 표현한다.)
# * No dot (.) at the end ( 마지막에 마침표를 찍지 않는다 )

 

 

 

 

 

 

 

 Rules

 

# The 7 rules of a great commit message
# 1. Separate subject from body with a blank line
# 2. Limit the subject line to 50 characters
# 3. Summary in present tense. Not capitalized
# 4. Do not end the subject line with a period
# 5. Use the imperative mood in the subject line
# 6. Wrap the body at 72 characters
# 7. Use the body to explain what and why vs. how

 

Commit message 7가지 규칙

 

1. Subject와 body를 공백 라인으로 나눈다.

 

2. Subject 라인은 50글자 이하로 작성한다.

 

3. Summary는 대문자 없이 현재시제로 작성한다.

 

4. 마침표로 끝내지 않는다.

 

5. 명령형으로 작성한다.

 

6. body는 72글자 이내로 작성한다.

 

7. body에서 무엇을, 어떻게, 왜를 설명한다.

 

 

 

 

반응형
댓글