git
-
이전 커밋으로 브랜치 만들어야할 때 git카테고리 없음 2023. 2. 21. 15:37
이전 커밋을 브랜치로 만들어야하는 그런 순간이 있다. 그럴때, 1. git log 로 돌아갈 commit hash 를 복사하고 ex ) commit hash : commit bfd111111be111b011dbb1cf111111111e11111f 2. 이전 커밋으로 새로운 브랜치를 만들어 git branch new-branch-name commit-hash ex) git branch working-well bfd111111be111b011dbb1cf111111111e11111f 3. 브랜치를 전환하면 끝~! git switch working-well