내 프로젝트에서 TDD를 사용하고 있습니다.
필자는 테스트를 작성하고, 실패했는지 확인하고, 코드를 작성하여 초록색으로 만들고, 힘내기로 커밋한다.
첫 번째 개발 커밋에 대해 읽었지만이 워크 플로를 수행하는 방법을 이해하지 못합니다.
(서비스 또는 저장소와 같은) 응용 프로그램 계층을 테스트하는 경우 다른 사람에게 잘 보이기 위해 커밋에 어떤 종류의 주석을 써야합니까?
테스트의 이름을 써야합니까? 어떻게 처리합니까?TDD & Git 커밋 코멘트
답변
TDD 변경에 대한 커밋은 다른 변경 사항과 동일해야합니다. 따라서 커밋 메시지에 대해 동일한 규칙을 적용합니다.
여기 an example from tpope입니다 :
Capitalized, short (50 chars or less) summary
More detailed explanatory text, if necessary. Wrap it to about 72 characters or so. In some contexts, the first line is treated as the subject of an email and the rest of the text as the body. The blank line separating the summary from the body is critical (unless you omit the body entirely); tools like rebase can get confused if you run the two together.
Write your commit message in the imperative: "Fix bug" and not "Fixed bug" or "Fixes bug." This convention matches up with commit messages generated by commands like git merge and git revert.
Further paragraphs come after blank lines.
- Bullet points are okay, too
- Typically a hyphen or asterisk is used for the bullet, preceded by a single space, with blank lines in between, but conventions vary here
- Use a hanging indent
- 1. git push, facebookgroup의 벽에 커밋 코멘트 게시?
- 2. SVN 커밋 코멘트 URL
- 3. "git branch -avv"에서 커밋 코멘트 정리 방법
- 4. SVN KIT 커밋 코멘트 문제
- 5. Git - 커밋 된 커밋 복원
- 6. 스토리 필요/TFS 관련 발급 커밋 코멘트?
- 7. Git - 커밋 제거
- 8. GIT - 파일 커밋 제한
- 9. Git 커밋 확인
- 10. Accedental Git 커밋 삭제
- 11. 접기 git 커밋
- 12. 커밋 후 Git 당기기
- 13. Git - 팬텀 로컬 커밋
- 14. Git 커밋 패치
- 15. git github repo에 커밋
- 16. Git- 아카이브 커밋
- 17. git fetch - missing 커밋
- 18. GIT - 커밋 내역 작성자
- 19. git 커밋 문제
- 20. git 히스토리에서 커밋 제거하기
- 21. git bundle 커밋 범위
- 22. Git 커밋 변경
- 23. Git Merge 이전 커밋
- 24. Git Post 커밋 훅 커밋 번호 얻기
- 25. git add 커밋 할 하위 디렉토리 내용
- 26. Git/Redmine 커밋 요구 사항
- 27. Git 커밋 로그에서 찾기/바꾸기
- 28. git 커밋 및 사용자 ID
- 29. html에서 Acess specific git 커밋
- 30. 커밋 전에 나를 알리는 git