Skip to content

Instantly share code, notes, and snippets.

@yoonjonglyu
Last active June 2, 2020 07:37
Show Gist options
  • Save yoonjonglyu/d11f12bf991ab725cd03524a7a979e65 to your computer and use it in GitHub Desktop.
Save yoonjonglyu/d11f12bf991ab725cd03524a7a979e65 to your computer and use it in GitHub Desktop.
git commit 메세지 템플릿
<type>: subject
# 제목의 길이는 영문일 경우 40자 한글일 경우 50자까지 간단하고 명료하게 작성.
# 제목을 영문으로 할 경우 무조건 대문자만 사용하고 명령어로 작성.
# 제목에 마침표 "." 사용금지.
# 제목-header, 본문-body, 꼬리말-footer은 각각 한줄의 공백을 기준으로 나뉜다.
# 제목은 필수, 본문, 꼬리말은 선택, 사용시 주석 제거.
# <commit type>
# feat : 새로운 기능 추가.
# fix : 버그 수정.
# docs : 문서 수정.
# style : 코드 포맷팅, 세미콜론 누락. 코드 변경이 없는 경우.
# refactor : 코드 리펙토링.
# test : 테스트 코드, 리펙토링 테스트 코드.
# chore : 빌드 업무 수정, 패키지매니저, 모듈 수정.
# etc : 기타 변경사항.
#<body>
# 본문-body은 부연설명이나 커밋의 이유를 설명 할 경우 작성.
# 본문 내용제한 72자 이하.
#<footer>
# 꼬리말-footer은 issue tracker id 작성시 사용.
# git template 설정 명령어 로컬 프로젝트 설정 --global 옵션 유무로 선택.
# git config --global commit.template <root>/git-commit-template.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment