728x90
용량이 큰 exe 파일을 넣어둔 걸 깜빡하고 커밋해서 push할 때마다 용량제한에 걸렸다. 로컬에서 exe파일을 삭제했음에도 불구하고 깃 내부에서 기록이 남아있는지 exe파일을 계속 푸쉬하려고 하면서 용량 초과 메시지를 띄운다.
파일 제거
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch 파일명' --prune-empty --tag-name-filter cat -- --all
경로 존재하면 경로+파일명
ex) root/src/components/PostsButtons.js
git filter-branch --force --index-filter 'git rm -r --cached --ignore-unmatch /src/components/PostsButtons.js' --prune-empty --tag-name-filter cat -- --all
728x90
반응형
'개발' 카테고리의 다른 글
[코틀린] 네이버 맵 api 마커 찍기 (보이는 곳만 나오게 ) (2) | 2024.03.14 |
---|---|
[코틀린] navermap 지도 영역 제한 ( 국내 영역으로 제한하기) (0) | 2024.03.11 |
[안드로이드/코틀린] 파이어베이스 리얼타임 데이터베이스를 연결해보자(firebase realtime database) (1) | 2024.02.27 |
피그마 프레젠테이션 기능 (0) | 2024.02.21 |
draw.io ERD 테이블에 행 추가하기 (0) | 2024.02.21 |
댓글