TIL - 특정 파일 커밋 내역으로 되돌리기

신혜린·2024년 6월 18일
0

TIL

목록 보기
21/27
git ls-files
  • 파일 경로 찾기
    - 레포지토리 내 전체 파일 경로 확인

git log --follow [파일 경로]
  • 특정 파일 커밋 히스토리 확인

git checkout [commit hash] -- [파일 경로]
  • 되돌리고자 하는 커밋 + 파일
profile
개 발자국 🐾

0개의 댓글