인프런 커뮤니티 질문&답변
push 시에 remote error 질문
작성
·
649
0
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: 3132d2271d3841301d016bcad034727ad611334ac6c79a90d632587e8d4baf51
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File .next/cache/webpack/client-development/2.pack is 229.30 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File .next/cache/webpack/client-development/11.pack is
331.46 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File .next/cache/webpack/client-development/26.pack is
102.01 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File .next/cache/webpack/client-development/56.pack is
134.46 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File .next/cache/webpack/client-development/10.pack is
112.58 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File .next/cache/webpack/client-development/39.pack is
112.78 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/youngnrichh/instagram-clone.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/youngnrichh/instagram-clone.git'
보니까 .next 파일 메모리가 100mb넘어서 에러뜨는것같은데
.gitignore에 .next를 넣었는데도 불구하고 푸쉬할때마다 이런게 계속뜹니다.
구글링해서 여러가지 방법해보고 git rm -r --cached . 이거하고 커밋하고 푸쉬해봐도 안되네요...
어떻게 방법이 없을까요?
퀴즈
EC2 인스턴스에 배포된 서버에서 GitHub의 최신 소스 코드를 받아오기 위해 주로 사용하는 Git 명령어는 무엇일까요?
git push
git add
git commit
git pull
답변 1
0
.next를 지우고 나서 커밋 한 번 해도 안 되나요? 애초에 .next나 node_modules같은 것을 깃에 커밋하면 안 됐습니다. 가장 간단한 방법은 repo를 새로 만드는 겁니다.




