Skip to content

Latest commit

ย 

History

History
99 lines (61 loc) ยท 3.03 KB

Git Commit Message Convention.md

File metadata and controls

99 lines (61 loc) ยท 3.03 KB

Git Commit Message Convention


Git์€ ์ปดํ“จํ„ฐ ํŒŒ์ผ์˜ ๋ณ€๊ฒฝ์‚ฌํ•ญ์„ ์ถ”์ ํ•˜๊ณ  ์—ฌ๋Ÿฌ ๋ช…์˜ ์‚ฌ์šฉ์ž๋“ค ๊ฐ„์— ํ•ด๋‹น ํŒŒ์ผ๋“ค์˜ ์ž‘์—…์„ ์กฐ์œจํ•˜๊ธฐ ์œ„ํ•œ ๋ถ„์‚ฐ ๋ฒ„์ „ ๊ด€๋ฆฌ ์‹œ์Šคํ…œ์ด๋‹ค. ๋”ฐ๋ผ์„œ, ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€๋ฅผ ์ž‘์„ฑํ•  ๋•Œ ์‚ฌ์šฉ์ž ๊ฐ„ ์›ํ™œํ•œ ์†Œํ†ต์„ ์œ„ํ•ด ์ผ๊ด€๋œ ํ˜•์‹์„ ์‚ฌ์šฉํ•˜๋ฉด ๋งŽ์€ ๋„์›€์ด ๋œ๋‹ค.

๊ธฐ์—…๋งˆ๋‹ค ๋‹ค์–‘ํ•œ ์ปจ๋ฒค์…˜์ด ์กด์žฌํ•˜๋ฏ€๋กœ, ์†Œ์†๋œ ๊ณณ์˜ ๊ทœ์น™์— ๋”ฐ๋ฅด๋ฉด ๋˜๋ฉฐ ์•„๋ž˜ ์˜ˆ์‹œ๋Š” 'Udacity'์˜ ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€ ์Šคํƒ€์ผ๋กœ ์ž‘์„ฑ๋˜์—ˆ๋‹ค.


์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€ ํ˜•์‹

type: Subject

body

footer

๊ธฐ๋ณธ์ ์œผ๋กœ 3๊ฐ€์ง€ ์˜์—ญ(์ œ๋ชฉ, ๋ณธ๋ฌธ, ๊ผฌ๋ฆฌ๋ง)์œผ๋กœ ๋‚˜๋ˆ„์–ด์กŒ๋‹ค.

๋ฉ”์‹œ์ง€ type์€ ์•„๋ž˜์™€ ๊ฐ™์ด ๋ถ„๋ฅ˜๋œ๋‹ค. ์•„๋ž˜์™€ ๊ฐ™์ด ์†Œ๋ฌธ์ž๋กœ ์ž‘์„ฑํ•œ๋‹ค.

  • feat : ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ์ถ”๊ฐ€
  • fix : ๋ฒ„๊ทธ ์ˆ˜์ •
  • docs : ๋ฌธ์„œ ๋‚ด์šฉ ๋ณ€๊ฒฝ
  • style : ํฌ๋งทํŒ…, ์„ธ๋ฏธ์ฝœ๋ก  ๋ˆ„๋ฝ, ์ฝ”๋“œ ๋ณ€๊ฒฝ์ด ์—†๋Š” ๊ฒฝ์šฐ ๋“ฑ
  • refactor : ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง
  • test : ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ์ž‘์„ฑ
  • chore : ๋นŒ๋“œ ์ˆ˜์ •, ํŒจํ‚ค์ง€ ๋งค๋‹ˆ์ € ์„ค์ •, ์šด์˜ ์ฝ”๋“œ ๋ณ€๊ฒฝ์ด ์—†๋Š” ๊ฒฝ์šฐ ๋“ฑ

Subject (์ œ๋ชฉ)

Subject(์ œ๋ชฉ)์€ ์ตœ๋Œ€ 50๊ธ€์ž๊ฐ€ ๋„˜์ง€ ์•Š๊ณ , ๋งˆ์นจํ‘œ์™€ ํŠน์ˆ˜๊ธฐํ˜ธ๋Š” ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š”๋‹ค.

์˜๋ฌธ ํ‘œ๊ธฐ ์‹œ, ์ฒซ๊ธ€์ž๋Š” ๋Œ€๋ฌธ์ž๋กœ ํ‘œ๊ธฐํ•˜๋ฉฐ ๊ณผ๊ฑฐ์‹œ์ œ๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š”๋‹ค. ๊ทธ๋ฆฌ๊ณ  ๊ฐ„๊ฒฐํ•˜๊ณ  ์š”์ ๋งŒ ์„œ์ˆ ํ•ด์•ผ ํ•œ๋‹ค.

Added (X) โ†’ Add (O)


Body (๋ณธ๋ฌธ)

Body (๋ณธ๋ฌธ)์€ ์ตœ๋Œ€ํ•œ ์ƒ์„ธํžˆ ์ ๊ณ , ๋ฌด์—‡์„ ์™œ ์ง„ํ–‰ํ–ˆ๋Š” ์ง€ ์„ค๋ช…ํ•ด์•ผ ํ•œ๋‹ค. ๋งŒ์•ฝ ํ•œ ์ค„์ด 72์ž๊ฐ€ ๋„˜์–ด๊ฐ€๋ฉด ๋‹ค์Œ ๋ฌธ๋‹จ์œผ๋กœ ๋‚˜๋ˆ  ์ž‘์„ฑํ•˜๋„๋ก ํ•œ๋‹ค.


Footer (๊ผฌ๋ฆฌ๋ง)

Footer (๊ผฌ๋ฆฌ๋ง)์€ ์ด์Šˆ ํŠธ๋ž˜์ปค์˜ ID๋ฅผ ์ž‘์„ฑํ•œ๋‹ค.

์–ด๋–ค ์ด์Šˆ์™€ ๊ด€๋ จ๋œ ์ปค๋ฐ‹์ธ์ง€(Resolves), ๊ทธ ์™ธ ์ฐธ๊ณ ํ•  ์‚ฌํ•ญ์ด ์žˆ๋Š”์ง€(See also)๋กœ ์ž‘์„ฑํ•˜๋ฉด ์ข‹๋‹ค.


์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€ ์˜ˆ์‹œ

์œ„ ๋‚ด์šฉ์„ ์ž‘์„ฑํ•œ ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€ ์˜ˆ์‹œ๋‹ค.

feat: Summarize changes in around 50 characters or less

More detailed explanatory text, if necessary. Wrap it to about 72
characters or so. In some contexts, the first line is treated as the
subject of the commit and the rest of the text as the body. The
blank line separating the summary from the body is critical (unless
you omit the body entirely); various tools like `log`, `shortlog`
and `rebase` can get confused if you run the two together.

Explain the problem that this commit is solving. Focus on why you
are making this change as opposed to how (the code explains that).
Are there side effects or other unintuitive consequences of this
change? Here's the place to explain them.

Further paragraphs come after blank lines.

 - Bullet points are okay, too

 - Typically a hyphen or asterisk is used for the bullet, preceded
   by a single space, with blank lines in between, but conventions
   vary here

If you use an issue tracker, put references to them at the bottom,
like this:

Resolves: #123
See also: #456, #789


[์ฐธ๊ณ  ์ž๋ฃŒ]