Git Commit 내역 영구 삭제하기
·
Etc./Git
방법 1: git filter-branch를 사용하여 파일 영구 삭제1. 로컬 저장소 준비작업할 로컬 저장소로 이동합니다.최신 상태로 업데이트합니다.git fetch --all2. git filter-branch 명령 실행git filter-branch --force --index-filter \ "git rm --cached --ignore-unmatch 경로/삭제할파일명" \ --prune-empty --tag-name-filter cat -- --all예시git filter-branch --force --index-filter \ "git rm --cached --ignore-unmatch secrets.txt" \ --prune-empty --tag-name-filter cat -- --all3...