Skip to content

git hook

Jo In Hyeok edited this page Oct 20, 2021 · 1 revision

git hook

  • pre-commit hook : staging ํŒŒ์ผ์— ๋Œ€ํ•ด eslint, prettier ๊ฒ€์‚ฌ ์ ์šฉ ๋ฐ fix
  • prepare-commit-msg : ๋ธŒ๋žœ์น˜ ์ด๋ฆ„์—์„œ Feat/Fix/Refactor ์—ฌ๋ถ€์™€ ์ด์Šˆ๋ฒˆํ˜ธ๋ฅผ ์ถ”์ถœํ•ด ์ปค๋ฐ‹๋ฉ”์‹œ์ง€ ์ œ๋ชฉ์— ๋ฏธ๋ฆฌ ๋งŒ๋“ค์–ด์คŒ.
  • commit-msg : ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€์— ์ด์Šˆ๋ฒˆํ˜ธ(ex. (#136) )๊ฐ€ ์žˆ๋Š”์ง€ ํ™•์ธ

pre-commit, commit-msg ํ›…์—์„œ ๊ฑฐ์ ˆ๋˜๋Š” ์ปค๋ฐ‹์€ ์ปค๋ฐ‹๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.