Skip to content

๐Ÿ›Ž Commit Message

seulgikim edited this page May 10, 2023 · 1 revision

Rule

์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€๋Š” ์ œ๋ชฉ๊ณผ ๋ณธ๋ฌธ์œผ๋กœ ๋‚˜๋ˆ„์–ด ์ง‘๋‹ˆ๋‹ค.
ํ•œ ์ค„๋งŒ ์ž‘์„ฑํ•ด๋„ ์„ค๋ช…์ด ์ถฉ๋ถ„ํ•˜๋‹ค๋ฉด ์ œ๋ชฉ๋งŒ์œผ๋กœ๋„ ๊ดœ์ฐฎ์Šต๋‹ˆ๋‹ค.
ํ•˜์ง€๋งŒ ์–ด๋–ค ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ์žˆ๋Š”์ง€ ๋งฅ๋ฝ๊ณผ ์„ค๋ช…์ด ํ•„์š”ํ•˜๋‹ค๋ฉด ๋ณธ๋ฌธ์„ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

  • ๋‹ค์Œ์€ ์ œ๋ชฉ๊ณผ ๋ณธ๋ฌธ์„ ์ž‘์„ฑํ•˜๋Š” ๊ทœ์น™์ž…๋‹ˆ๋‹ค.
  1. ํ•œ๊ธ€๋กœ ์ปค๋ฐ‹ ์ œ๋ชฉ๊ณผ ๋ฉ”์„ธ์ง€๋ฅผ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ์–ด์š”.
  2. ์ œ๋ชฉ ๋์— ์ด์Šˆ ๋ฒˆํ˜ธ๋ฅผ ์ ์–ด์ฃผ์„ธ์š”.
  3. ์ œ๋ชฉ๊ณผ ๋ณธ๋ฌธ์„ ํ•œ ์ค„ ๋„์›Œ ๋ถ„๋ฆฌํ•ด ์ฃผ์„ธ์š”.
  4. ํƒ€์ž… ์ฒซ๊ธ€์ž๋ฅผ ๋Œ€๋ฌธ์ž๋กœ ์ ์–ด์ฃผ์„ธ์š”.
  5. ์ œ๋ชฉ ๋์— . ๋Š” ๊ธˆ์ง€ํ•ฉ๋‹ˆ๋‹ค.
  6. ์ œ๋ชฉ์€ ๋ช…๋ น์–ด๋กœ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.
  7. ๋ณธ๋ฌธ์€ 50์ž๋งˆ๋‹ค ์ค„์„ ๋ฐ”๊ฟ”์ฃผ์„ธ์š”.
  8. ๋ณธ๋ฌธ์€ ์–ด๋–ป๊ฒŒ ๋ณ€๊ฒฝํ–ˆ๋Š”์ง€ ๋ณด๋‹ค ๋ฌด์—‡์„ ๋ณ€๊ฒฝํ–ˆ๋Š”์ง€, ์™œ ๋ณ€๊ฒฝํ–ˆ๋Š”์ง€ ์— ๋งž์ถ”์–ด ์ž‘์„ฑํ•˜์„ธ์š”.

Commit Type Sample

feat: ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ 
style: UI ๋””์ž์ธ ๋ณ€๊ฒฝ 
bugfix: ๋ฒ„๊ทธ ์ˆ˜์ •
conflict : ์ถฉ๋Œ ํ•ด๊ฒฐ
modify: ์ž์ž˜ํ•œ ์ˆ˜์ •, ์ฝ”๋“œ ์Šคํƒ€์ผ
docs: ๋ฌธ์„œ ์ˆ˜์ •
test: ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ์ˆ˜์ •
refactor: ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง
build: ๋นŒ๋“œ ๊ด€๋ จ ํŒŒ์ผ ์ˆ˜์ •

Commit Message Sample

feat: Main ์ปดํฌ๋„ŒํŠธ ์ƒ์„ฑ <<< ์ œ๋ชฉ
bugFix: ๋‚ด ์ •๋ณด ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•˜๋ฉด ๋กœ๊ทธ์ธ์ด ํ’€๋ฆฌ๋Š” ๋ฒ„๊ทธ ์ˆ˜์ • <<< ์ œ๋ชฉ

Change Commit Message

๊ฐ€์žฅ ์ตœ๊ทผ commit ๋ฉ”์„ธ์ง€ ๋ณ€๊ฒฝ

git commit --amend -m "๋ฐ”๊ฟ€ ๋ฉ”์‹œ์ง€"

Clone this wiki locally