Back
Featured image of post [git] Gitmoji ์‚ฌ์šฉ ๋ฐฉ๋ฒ•

[git] Gitmoji ์‚ฌ์šฉ ๋ฐฉ๋ฒ•

๐Ÿช„ ์ด๋ชจ์ง€๋ฅผ ์ด์šฉํ•œ ์ปค๋ฐ‹ ์ปจ๋ฒค์…˜ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐฉ๋ฒ•

Gitmoji?

gitmoji๋ž€ ๋ง ๊ทธ๋Œ€๋กœ, ์ด๋ชจ์ง€๋ฅผ ํ™œ์šฉํ•ด์„œ ์ปค๋ฐ‹ ์ปจ๋ฒค์…˜์„ ์‰ฝ๊ฒŒ ํ•  ์ˆ˜ ์žˆ๋Š” ํ™•์žฅ ํˆด์ด๋‹ค.

์‚ฌ์šฉ ๋ฐฉ๋ฒ•

npm ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ cli ํ™˜๊ฒฝ์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์ง€๋งŒ, vscode ํ™•์žฅ์—์„œ๋„ ์ œ๊ณตํ•˜๊ธฐ ๋•Œ๋ฌธ์— Gitmoji ํ™•์žฅ ํ™•์žฅ ํ”„๋กœ๊ทธ๋žจ์„ ์„ค์น˜ํ•œ๋‹ค. Image 1 ์„ค์น˜ ํ›„ ์†Œ์Šค์ œ์–ด ๋ฉ”๋‰ด์— ์ด๋™ํ•˜๋ฉด ๐Ÿ˜ƒ ์Šค๋งˆ์ผ ์•„์ด์ฝ˜์ด ์ƒ์„ฑ๋œ๋‹ค. ํด๋ฆญํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ๊ธฐ๋ณธ์ ์œผ๋กœ ์ •์˜๋œ, ์ปค๋ฐ‹ ์ปจ๋ฒค์…˜ ๋ฆฌ์ŠคํŠธ๊ฐ€ ํ‘œ์‹œ๋œ๋‹ค.
์ปค๋ฐ‹ ํ–‰์œ„๋ฅผ ๊ฒ€์ƒ‰ํ•˜๊ฑฐ๋‚˜, ๋ฐฉํ–ฅํ‚ค๋กœ ๊ณจ๋ผ์„œ ๋„ฃ์–ด์ฃผ๋ฉด ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€์— ์‚ฝ์ž…๋œ๋‹ค.
Image 2
๋งค๋ฒˆ update.. fix.. ์ด๋ ‡๊ฒŒ ๊ธ€์”จ๋ฅผ ์“ฐ๋Š”๊ฒŒ ์กฐ๊ธˆ ๊ท€์ฐฎ์•˜๋Š”๋ฐ ๊นƒ๋ชจ์ง€๋ฅผ ์“ฐ๋‹ˆ๊นŒ ๋ฌด์–ธ๊ฐ€ ์ปค๋ฐ‹ ์š•๊ตฌ๋„ ์ƒ์Šน๋˜๊ณ , ๋ฌด์—‡๋ณด๋‹ค ๊ท€์—ฝ๋‹ค.

์ปค์Šคํ…€ ํ•˜๊ธฐ

๊ธฐ๋ณธ์ ์œผ๋กœ ์…‹ํŒ…๋œ ์ปจ๋ฒค์…˜๋“ค๋„ ํ›Œ๋ฅญํ•˜์ง€๋งŒ, ์‚ฌ์‹ค ์ € ๋งŽ์€ ์ปค๋ฐ‹ ๊ทœ์น™๋“ค์„ ๋ชจ๋‘ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ๋„ ์•„๋‹ˆ๊ณ  ์˜์–ด๋ผ์„œ ๋งค๋ฒˆ ํ™•์ธํ•˜๋Š” ๊ฒƒ๋„ ๊ท€์ฐฎ์•„์„œ.. ์ปค์Šคํ…€์„ ํ•ด๋ณด์•˜๋‹ค.
๋‹คํ–‰ํžˆ ๋ฌธ์„œ๋ฅผ ์ฝ์–ด๋ณด๋‹ˆ vscode์˜ setting.json์—์„œ ์•„๋ž˜ ์†์„ฑ์„ ์ถ”๊ฐ€ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

  • gitmoji.onlyUseAdditionalEmojis : ์ปค์Šคํ…€ ์ปจ๋ฒค์…˜ ์‚ฌ์šฉ ์—ฌ๋ถ€boolean
  • gitmoji.additionalEmojis : ์ถ”๊ฐ€ ํ•  ์ปจ๋ฒค์…˜array

์•„๋ž˜๋Š” ๋‚ด๊ฐ€ ๋งŽ์ด ์‚ฌ์šฉํ•˜๋Š” ์ƒํ™ฉ์œผ๋กœ ์ปค์Šคํ…€์„ ํ•ด๋ณด์•˜๋‹ค. settings.json์— ์ถ”๊ฐ€ํ•ด์ฃผ๋ฉด ๋

"gitmoji.onlyUseAdditionalEmojis": true,
"gitmoji.additionalEmojis": [
    {
        "emoji": "โœจ",
        "code": ":sparkles:",
        "description": "[new features] ๊ธฐ๋Šฅ ๋ฐ ์ฝ”๋“œ ์ถ”๊ฐ€"
    },
    {
        "emoji": "๐Ÿ”ฅ",
        "code": ":fire:",
        "description": "[remove] ๊ธฐ๋Šฅ ๋ฐ ์ฝ”๋“œ ์ œ๊ฑฐ"
    },
    {
        "emoji": "๐ŸŽจ",
        "code": ":art:",
        "description": "[styling] ์ฝ”๋“œ ์Šคํƒ€์ผ๋ง"
    },
    {
        "emoji": "โž•",
        "code": ":heavy_plus_sign:",
        "description": "[add] ํŒŒ์ผ ์ถ”๊ฐ€"
    },
    {
        "emoji": "โž–",
        "code": ":heavy_minus_sign:",
        "description": "[remove] ํŒŒ์ผ ์ œ๊ฑฐ"
    },
    {
        "emoji": "๐Ÿ—๏ธ",
        "code": ":card_file_box:",
        "description": "[structure] ํ”„๋กœ์ ํŠธ ๊ตฌ์กฐ ๋ณ€๊ฒฝ"
    },
    {
        "emoji": "๐Ÿ›",
        "code": ":bug:",
        "description": "[fix] ๋ฒ„๊ทธ ์ˆ˜์ •"
    },
    {
        "emoji": "๐Ÿš‘",
        "code": ":ambulance:",
        "description": "[hotfix] ์น˜๋ช…์ ์ธ ๋ฒ„๊ทธ ์ˆ˜์ •"
    },
    {
        "emoji": "โ™ป๏ธ",
        "code": ":recycle:",
        "description": "[refactor] ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง"
    },
    {
        "emoji": "๐Ÿ“",
        "code": ":memo:",
        "description": "[doc] ๋ฌธ์„œ์ž‘์„ฑ ๋ฐ ํŽธ์ง‘"
    },
    {
        "emoji": "๐ŸŽ‰",
        "code": ":tada:",
        "description": "[init] ํ”„๋กœ์ ํŠธ ๊ฐœ์‹œ"
    },
    {
        "emoji": "๐Ÿš€",
        "code": ":rocket:",
        "description": "[deploy] ํ”„๋กœ์ ํŠธ ๋ฐฐํฌ"
    }
]

gitmoji-custom