본문 바로가기
IT/git

GIT - Reset

by 내일은교양왕 2023. 6. 13.

개념
예전 커밋 상태로 돌아가고 싶을 때

Command

git reset {commitId} --hard

 

주의할 점
Remote Repository에 반영된 것들은 절대로 reset을 하면 안됨

Reference

https://www.youtube.com/watch?v=eVo2lmkXaDc 

 

'IT > git' 카테고리의 다른 글

GIT - Status  (0) 2023.06.13
GIT - Stash  (0) 2023.06.13
GIT - Prune  (0) 2023.06.13
GIT - Commit  (0) 2023.06.13
GIT - Branch  (0) 2023.06.13