https://computer-science-student.tistory.com/490
[Git] 특정 파일만 되돌리기
Git 특정 파일만 되돌리기 프로젝트를 진행하다가 작업 내용이 꼬이거나 하면 최근 커밋으로 초기화시킬때 보통 git reset --hard HEAD 명령어를 사용한다. 하지만 모든 작업 내용을 초기화하지 않고
computer-science-student.tistory.com
git checkout <커밋아이디> <특정파일경로>
'Infra > Git' 카테고리의 다른 글
Git submodule (0) | 2022.06.23 |
---|---|
Git stash (0) | 2022.06.23 |
Git pull할 때 conflict 발생할 경우 (0) | 2022.06.23 |
Git remote branch 가져오기 (0) | 2022.06.23 |
삭제한 stash 복구하는 방법 (0) | 2022.06.20 |
댓글