IT/git

GIT - Reset

내일은교양왕 2023. 6. 13. 18:59

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

Command

git reset {commitId} --hard

 

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

Reference

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