Infra/Git 특정 파일만 특정 commit 시점으로 되돌리기 Pinocchio 2022. 9. 29. 17:59 https://computer-science-student.tistory.com/490 [Git] 특정 파일만 되돌리기 Git 특정 파일만 되돌리기 프로젝트를 진행하다가 작업 내용이 꼬이거나 하면 최근 커밋으로 초기화시킬때 보통 git reset --hard HEAD 명령어를 사용한다. 하지만 모든 작업 내용을 초기화하지 않고 computer-science-student.tistory.com git checkout <커밋아이디> <특정파일경로>