kangsudal / whats_for_dinner

1 stars 1 forks source link

error: File firebase-tools-instant-win.exe is 135.38 MB; this exceeds GitHub's file size limit of 100.00 MB #11

Closed kangsudal closed 2 years ago

kangsudal commented 2 years ago

git push

파이어베이스 호스팅에 배포후 생겨난 firebase-tools-instant-win.exe 용량이 커서 다음과 같은 에러가 났다.

Enumerating objects: 8, done. Counting objects: 100% (8/8), done. Delta compression using up to 16 threads Compressing objects: 100% (7/7), done. Writing objects: 100% (7/7), 33.89 MiB | 2.11 MiB/s, done. Total 7 (delta 1), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (1/1), completed with 1 local object. remote: error: Trace: b9e90f8e962c296b1abf4c079ca916142a5104464cb236adc8fc1fc4ac049ab1 remote: error: See http://git.io/iEPt8g for more information. remote: error: File firebase-tools-instant-win.exe is 135.38 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. To https://github.com/kangsudal/whats_for_dinner.git ! [remote rejected] main -> main (pre-receive hook declined) error: failed to push some refs to 'https://github.com/kangsudal/whats_for_dinner.git'

D:\AndroidStudioProjects\whats_for_dinner>git status On branch main Your branch is ahead of 'origin/main' by 1 commit. (use "git push" to publish your local commits)

nothing to commit, working tree clean

kangsudal commented 2 years ago

https://wooono.tistory.com/284

https://ojui.tistory.com/68

https://stackoverflow.com/questions/33330771/git-lfs-this-exceeds-githubs-file-size-limit-of-100-00-mb

https://medium.com/@stargt/github%EC%97%90-100mb-%EC%9D%B4%EC%83%81%EC%9D%98-%ED%8C%8C%EC%9D%BC%EC%9D%84-%EC%98%AC%EB%A6%AC%EB%8A%94-%EB%B0%A9%EB%B2%95-9d9e6e3b94ef

kangsudal commented 2 years ago

https://stackoverflow.com/questions/52788647/firebase-ml-kit-exceeds-githubs-file-size-limit

gitignore에 추가하여야겠다

kangsudal commented 2 years ago

https://stackoverflow.com/questions/59267248/what-is-the-difference-between-revert-commit-and-undo-commit-in-intellij-ide

.firebase/hosting.YnVpbGRcd2Vi.cache .firebaserc firebase.json firebase-tools-instant-win.exe

kangsudal commented 2 years ago

git rm -r --cached "*"

이미 깃헙 repo에 올라간 파일에 .gitignore 적용이 안되는 경우 https://sustainable-dev.tistory.com/125

$ git rm --cached . //현재 디렉토리 기준 스테이징 된 파일을 모두 비움

$ git add . //현재 디렉토리 기준 .gitignore가 적용된 작업트리를 다시 스테이징 시킴

$ git commit -m ".gitignore 파일 트랙킹하지 않도록 수정" //커밋 메세지와 함께 새롭게 커밋 함

$ git push //위의 커밋을 원격 저장소로 push함