
커밋을 기능별로 정리하는 게 중요하다는 것을 깨닫고 history를 연관되게 남기기 위해 커밋 컨벤션을 정리해보기로 했습니다.
커밋 메세지가 자세하지 않으면 files changed 를 클릭해서 일일히 확인해야하기 때문에 리소스가 더 들게 됩니다.
그렇기에 이번 기회에 커밋 컨벤션을 잘 정리해서 커밋 메세지를 일목요연하게 남겨보는 습관을 길러보려고 합니다!
AngularJS Commit Conventions 를 참조하였습니다!
new features bug fixes breaking changesgit log <last tag> HEAD --pretty=format:%sgit log <last release> HEAD --grep featuregit bisect skip $(git rev-list --grep irrelevant <good place> HEAD)
context 정보 추가<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
< type >
feat feature 새로운 기능 추가fix bug fix 버그 수정docs documentation 문서 수정style 코드 포맷팅, 세미콜론 누락 등refactor 코드 리팩토링test test코드 추가chore maintain (잡일), 빌드 업무 수정, 패키지 매니저 수정< scope >
$location $browser $compile $rootScope ngHref ngClick ngView 등< subject >
. 사용 XMessage body
Message footer
Breaking changes 변경 사항 설명, 정당성 및 마이그레이션 참고사항Referencing issues Closes #이슈번호아래 링크에 예시가 많으니 참조하시면 쉽게 감을 잡으실 수 있습니다.
Git Commit Message Conventions - Examples
:art: Improve structure / format of the code.:zap: Improve performance.:fire: Remove code or files.:bug: Fix a bug.:ambulance: Critical hotfix.:sparkles: Introduce new features.:memo: Add or update documentation.:rocket: Deploy stuff.:lipstick: Add or update the UI and style files.:tada: Begin a project.:white_check_mark: Add, update, or pass tests.:lock: Fix security or privacy issues.:closed_lock_with_key: Add or update secrets.:bookmark: Release / Version tags.:green_heart: Fix CI Build.:recycle: Refactor code.:mag: Improve SEO.:iphone: Work on responsive design.:bento: Add or update assets.[참조] https://gitmoji.dev/