/
πŸ’¬

Commit Convention

CommitGit
Table of contents
  • commit λ©”μ‹œμ§€ μ»¨λ²€μ…˜

commit λ©”μ‹œμ§€ μ»¨λ²€μ…˜

type: subject
body

type

μ–΄λ–€ μ˜λ„μ˜ 컀밋인지 기본적인 λͺ…μ‹œ

  • feat: μƒˆλ‘œμš΄ κΈ°λŠ₯ μΆ”κ°€
  • fix: 버그 μˆ˜μ •
  • refactor: μ½”λ“œ λ¦¬νŒ©ν† λ§ (버그λ₯Ό μˆ˜μ •ν•˜κ±°λ‚˜ κΈ°λŠ₯을 μΆ”κ°€ν•˜μ§€ μ•ŠλŠ” μ½”λ“œ λ³€κ²½)
  • style: μ½”λ“œ 포맷과 같은 μŠ€νƒ€μΌ μˆ˜μ •
  • chore: λΉŒλ“œμ— 영ν–₯을 μ£ΌλŠ” μˆ˜μ • / νŒ¨ν‚€μ§€ λ§€λ‹ˆμ € μˆ˜μ • (νŒ¨ν‚€μ§€ μΆ”κ°€, μ‚­μ œ λ“±)
  • docs: λ¬Έμ„œ μΆ”κ°€, μ‚­μ œ, λ³€κ²½

subject

  • μ˜μ–΄λ‘œ μž‘μ„±μ„ 기본으둜 ν•œλ‹€.
  • 50자λ₯Ό λ„˜κΈ°μ§€ μ•ŠλŠ”λ‹€.
  • λ™μ‚¬λ‘œ μ‹œμž‘ ν•  경우 첫 κΈ€μžλŠ” λŒ€λ¬Έμžλ‘œ μ‹œμž‘ν•œλ‹€.
  • κ³Όκ±° μ‹œμ œλŠ” μ§€μ–‘ν•œλ‹€.
  • λ§ˆμΉ¨ν‘œλ₯Ό 뢙이지 μ•ŠλŠ”λ‹€

body (선택 사항)

  • ν•œκΈ€λ‘œ μž‘μ„±μ„ 기본으둜 ν•œλ‹€.
  • 제λͺ©κ³Ό ꡬ뢄을 μœ„ν•΄ ν•œμΉΈμ„ λ„μ›Œ μž‘μ„±ν•œλ‹€.
  • ν•œ 쀄에 72자λ₯Ό λ„˜κΈ°μ§€ μ•ŠλŠ”λ‹€.
  • μ–΄λ–»κ²Œ ν–ˆλŠ”μ§€κ°€ μ•„λ‹ˆλΌ 무엇을 μ™œ ν–ˆλŠ”μ§€ μž‘μ„±ν•œλ‹€.

예)

feat: Add some feature
fix: Remove unuesd import
μ‚¬μš©ν•˜μ§€ μ•ŠλŠ” importκ°€ μžˆμ–΄μ„œ μ‚­μ œ
refactor: Improve performance some feature
style: Correct some variable name
A λ³€μˆ˜λͺ…을 λͺ…λͺ… κ·œμΉ™μ— λ§žμΆ”μ–΄ B둜 λ³€κ²½
chore: Add redux-actions

Reference

Conventional Commits

Contributing to Angular - Commit Message Guidelines

λ‚˜λ§Œμ˜ commit message μž‘μ„±λ²•

Git 컀밋 메세지 μŠ€νƒ€μΌ κ°€μ΄λ“œ

Git - 컀밋 λ©”μ‹œμ§€ μ»¨λ²€μ…˜

logo
Things I've Learned