forked from gyoogle/tech-interview-for-developer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2022-09-11 [ETC] Git Commit Message Convention
- Loading branch information
Showing
1 changed file
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# Git Commit Message Convention | ||
|
||
<br> | ||
|
||
Git์ ์ปดํจํฐ ํ์ผ์ ๋ณ๊ฒฝ์ฌํญ์ ์ถ์ ํ๊ณ ์ฌ๋ฌ ๋ช ์ ์ฌ์ฉ์๋ค ๊ฐ์ ํด๋น ํ์ผ๋ค์ ์์ ์ ์กฐ์จํ๊ธฐ ์ํ ๋ถ์ฐ ๋ฒ์ ๊ด๋ฆฌ ์์คํ ์ด๋ค. ๋ฐ๋ผ์, ์ปค๋ฐ ๋ฉ์์ง๋ฅผ ์์ฑํ ๋ ์ฌ์ฉ์ ๊ฐ ์ํํ ์ํต์ ์ํด ์ผ๊ด๋ ํ์์ ์ฌ์ฉํ๋ฉด ๋ง์ ๋์์ด ๋๋ค. | ||
|
||
๊ธฐ์ ๋ง๋ค ๋ค์ํ ์ปจ๋ฒค์ ์ด ์กด์ฌํ๋ฏ๋ก, ์์๋ ๊ณณ์ ๊ท์น์ ๋ฐ๋ฅด๋ฉด ๋๋ฉฐ ์๋ ์์๋ 'Udacity'์ ์ปค๋ฐ ๋ฉ์์ง ์คํ์ผ๋ก ์์ฑ๋์๋ค. | ||
|
||
<br> | ||
|
||
### ์ปค๋ฐ ๋ฉ์์ง ํ์ | ||
|
||
```bash | ||
type: Subject | ||
|
||
body | ||
|
||
footer | ||
``` | ||
|
||
๊ธฐ๋ณธ์ ์ผ๋ก 3๊ฐ์ง ์์ญ(์ ๋ชฉ, ๋ณธ๋ฌธ, ๊ผฌ๋ฆฌ๋ง)์ผ๋ก ๋๋์ด์ก๋ค. | ||
|
||
๋ฉ์์ง type์ ์๋์ ๊ฐ์ด ๋ถ๋ฅ๋๋ค. ์๋์ ๊ฐ์ด ์๋ฌธ์๋ก ์์ฑํ๋ค. | ||
|
||
- `feat` : ์๋ก์ด ๊ธฐ๋ฅ ์ถ๊ฐ | ||
- `fix` : ๋ฒ๊ทธ ์์ | ||
- `docs` : ๋ฌธ์ ๋ด์ฉ ๋ณ๊ฒฝ | ||
- `style` : ํฌ๋งทํ , ์ธ๋ฏธ์ฝ๋ก ๋๋ฝ, ์ฝ๋ ๋ณ๊ฒฝ์ด ์๋ ๊ฒฝ์ฐ ๋ฑ | ||
- `refactor` : ์ฝ๋ ๋ฆฌํฉํ ๋ง | ||
- `test` : ํ ์คํธ ์ฝ๋ ์์ฑ | ||
- `chore` : ๋น๋ ์์ , ํจํค์ง ๋งค๋์ ์ค์ , ์ด์ ์ฝ๋ ๋ณ๊ฒฝ์ด ์๋ ๊ฒฝ์ฐ ๋ฑ | ||
|
||
<br> | ||
|
||
#### Subject (์ ๋ชฉ) | ||
|
||
`Subject(์ ๋ชฉ)`์ ์ต๋ 50๊ธ์๊ฐ ๋์ง ์๊ณ , ๋ง์นจํ์ ํน์๊ธฐํธ๋ ์ฌ์ฉํ์ง ์๋๋ค. | ||
|
||
์๋ฌธ ํ๊ธฐ ์, ์ฒซ๊ธ์๋ ๋๋ฌธ์๋ก ํ๊ธฐํ๋ฉฐ ๊ณผ๊ฑฐ์์ ๋ฅผ ์ฌ์ฉํ์ง ์๋๋ค. ๊ทธ๋ฆฌ๊ณ ๊ฐ๊ฒฐํ๊ณ ์์ ๋ง ์์ ํด์ผ ํ๋ค. | ||
|
||
> Added (X) โ Add (O) | ||
<br> | ||
|
||
#### Body (๋ณธ๋ฌธ) | ||
|
||
`Body (๋ณธ๋ฌธ)`์ ์ต๋ํ ์์ธํ ์ ๊ณ , `๋ฌด์`์ `์` ์งํํ๋ ์ง ์ค๋ช ํด์ผ ํ๋ค. ๋ง์ฝ ํ ์ค์ด 72์๊ฐ ๋์ด๊ฐ๋ฉด ๋ค์ ๋ฌธ๋จ์ผ๋ก ๋๋ ์์ฑํ๋๋ก ํ๋ค. | ||
|
||
<br> | ||
|
||
#### Footer (๊ผฌ๋ฆฌ๋ง) | ||
|
||
`Footer (๊ผฌ๋ฆฌ๋ง)`์ ์ด์ ํธ๋์ปค์ ID๋ฅผ ์์ฑํ๋ค. | ||
|
||
์ด๋ค ์ด์์ ๊ด๋ จ๋ ์ปค๋ฐ์ธ์ง(Resolves), ๊ทธ ์ธ ์ฐธ๊ณ ํ ์ฌํญ์ด ์๋์ง(See also)๋ก ์์ฑํ๋ฉด ์ข๋ค. | ||
|
||
<br> | ||
|
||
### ์ปค๋ฐ ๋ฉ์์ง ์์ | ||
|
||
์ ๋ด์ฉ์ ์์ฑํ ์ปค๋ฐ ๋ฉ์์ง ์์๋ค. | ||
|
||
```markdown | ||
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 | ||
``` | ||
|
||
<br> | ||
|
||
<br> | ||
|
||
#### [์ฐธ๊ณ ์๋ฃ] | ||
|
||
- [๋งํฌ](https://udacity.github.io/git-styleguide/) |