
[git] 커밋 변경 이력 되돌리기 - git-revert에 대해 알아보자
·
개발/git
팀에서 v1.0.0 태그를 발행하고, 그 위로 다시 열심히 커밋들을 쌓고 있었다.그런데 다시 예전 버전(v1.0.0)으로 돌아가자는 의견이 나왔다.이 때, 기존의 commit log를 남겨두면서 그 위에 v1.0.0을 최신 커밋으로 쌓으려면 어떻게 해야할까?시간이 없으신 분들은 맨 아래 결론을 봐주세요우선 git-revert에 대해 알아보자. git-revert의 정의https://git-scm.com/docs/git-revert.html Git - git-revert DocumentationWhile git creates a basic commit message automatically, it is strongly recommended to explain why the original commit i..