수월한 code reiveiw 및 merge를 위해서 그리고 혹시 모르는 conflict에 대비해서, Frontend 작업과 Backend 작업은 하나의 commit에 겹치지 않도록 한다.
<aside> ✅
git add
할 때 frontend, backend 관련 파일만 git add [파일 이름]
하거나, 현재 디렉터리 경로를 frontend 혹은 backend로 두고 git add -A
혹은 git add .
을 하면 된다.
</aside>
commit message는 commit convention에 맞추어서 작성한다. https://velog.io/@jiheon/Git-Commit-message-규칙
git commit -m '[제목]: [내용(한글)]'
예시)
git commit -m 'fix: 홈 버튼 클릭 안되는 현상 수정'
git commit -m 'feat: 오늘의 습관 라우트 생성'