Closed kangsudal closed 2 years ago
.firebase/hosting.YnVpbGRcd2Vi.cache .firebaserc firebase.json firebase-tools-instant-win.exe
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함
파이어베이스 호스팅에 배포후 생겨난 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