궁금한게 많은 백구스/Git&GitHub
[Git&GitHub] git commit --amend 깃 커밋 어멘드 커밋 메세지 덮어쓰기 하는 법
백구스
2022. 12. 12. 16:22

본격적인 프로젝트 시작
깃 클론부터 삽질아닌 삽질하다가
드디어 HTML 부터 마크업을 하고 커밋을 무심코 해버리는데...
아, 커밋 컨벤션이 있었지;
커밋을 취소하는 방법도 구글링하면 나오지만 나는 덮어쓰기를 해보고 싶었다
git commit --amend -m "변경할 커밋 메세지"
초간단
커밋메세지가 잘 변경되었는지
git log
를 입력해 확인할 수 있다

커밋메세지를 막상 쓰려니 은근 고민하는데 시간이 걸렸다
협업하는 동료들이 한눈에 알아 볼 수 있게 상세하고 간결한 메세지를 작성하도록 하자
커밋 메세지 참고글
- https://www.atlassian.com/ko/git/tutorials/rewriting-historyhttps://meetup.toast.com/posts/106
- https://meetup.toast.com/posts/106https://github.com/nurimeansworld/strawberry_market/issues/3
- https://github.com/nurimeansworld/strawberry_market/issues/3
- https://velog.io/@ninto_2/%EC%BB%A4%EB%B0%8B-%EC%BB%A8%EB%B2%A4%EC%85%98