서 업그레이드 후난 12~13 일,캐시기에는 너무 많 Github

0

질문

나는 최근 업그레이드는 나의 종속성으로 package.json 최신. 에 갔에서 각 12.2.0 을 13.0.1 및 github 은 이제 거부하는 내 밀어 다음과 같은 파일 크기에 오류가 있습니다. 은 거기에 몇 가지 설정이 필요하에서 정의하는 각도입니다.json 프로파일 구축을 최소화하는 데 도움이 될 것입니다 이러한 캐시 파일의 크기는?

remote: warning: File .angular/cache/angular-webpack/72163742903fc8ba00e684045de261c2e3a2fb86/3.pack is 54.01 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: warning: File .angular/cache/angular-webpack/72163742903fc8ba00e684045de261c2e3a2fb86/2.pack is 56.42 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: error: Trace: 0b9557fffbe30aac33f6d9858ef97559341c5c1614ace35524fcba85ac99ca76
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File .angular/cache/angular-webpack/72163742903fc8ba00e684045de261c2e3a2fb86/3.pack is 122.06 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File .angular/cache/angular-webpack/72163742903fc8ba00e684045de261c2e3a2fb86/5.pack is 123.92 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File .angular/cache/angular-webpack/f48e9bc724ec0d5ae9a9d2fed858970d0a503f10/0.pack is 154.05 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File .angular/cache/angular-webpack/9327900b3187f0b6351b4801d208e7b58f1af17e/0.pack is 165.50 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File .angular/cache/angular-webpack/663bcd30d50863949acf1c25f02b95cab85c248a/0.pack is 151.56 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File .angular/cache/angular-webpack/663bcd30d50863949acf1c25f02b95cab85c248a/0.pack is 151.55 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.

편집:

  1. 내가 만들어진 이 리포트를 가진 모난 접 cli 및 유지 및 업데이트를 통해 다양한 버전의 모고 문제가 없었을 때까지이 최근 업데이트합니다.

  2. 니다.gitignore 파일에서 루트,응용 프로그램의 일치하는 제안의 예: enter image description here

  3. 추가하는 경우 /.angular/cache 을 gitignore 파일에 실행 git rm -rf --cached . && git add . && git commit -m 'fix(gitignore): add angular cache' && git push --set-upstream origin chore/bump-deps 하지만 여전히 파일 크기에 오류가 있습니다.

angular github
2021-11-23 21:27:42
1

최고의 응답

7

는지 확인 .gitignore 에서 부모 의 폴더 .angular.
.gitignore 파일에 간단한 .angular/cache/ 해야를 무시하기에 충분히는 하위 폴더 내용.

확인:

git check-ignore -v -- .angular/cache/angular-webpack/72163742903fc8ba00e684045de261c2e3a2fb86/2.pack

예를 볼 수 있습니다 in ganatan/angular-starter/.gitignore (에서 각 13 를 들어 시작 프로젝트),가 /.angular/cache/ 을 사용하여 앵커 규칙을 상단의 폴더 저장소.

The OP S.Taylor 확인에 코멘트:

나는 확신이 내 문제입니다.
나는 포기 dev 점 및 업데이트 내 종속성 없이 사용하는 화합물과 같은 명령을 git add . && git commit -m 'fix(gitignore): add angular cache'.
을 확인하는 참고 무엇을 개최되었다.

2021-11-24 16:53:30

감사에 대한 답변@VonC. 체크인 명령을 무시하는 것을 보고 다시는 파일은 무시되고 있는 규칙에서 선 35, /.angular/cache 하지만 나는 아직도 크기를 얻을 경고: $ git check-ignore -v -- .angular/cache/angular-webpack/72163742903fc8ba00e684045de261c2e3a2fb86/2.pack .gitignore:35:/.angular/cache .angular/cache/angular-webpack/72163742903fc8ba00e684045de261c2e3a2fb86/2.pack
S. Taylor

@S. 테일러는 것이 가능 폴더를 추적하기 전에 투입하고,하게 표현할 수 있는 것을 말합니다.commit 는 오류 메시지를 트리거하는 동안 git push. 설치 git 사이 저음,면 큰 commit 식별 git 사이 저를 제거하 commit git 필터 repo 에 설명된 대로, stackoverflow.com/a/66452371/6309. git 사이 저 윈도우에서(당신에 윈도우): stackoverflow.com/a/66452371/6309
VonC

감사@VonC,나는 확신이 내 문제입니다. 지 않았을 설치하려는 자식작할 수 있다면 그것을 피하는,그래서 나는 버려진 데브점 및 업데이트 내 종속성 없이 사용하는 화합물과 같은 명령을 git add . && git commit -m 'fix(gitignore): add angular cache'. 을 확인하는 참고 무엇을 개최되었다.
S. Taylor

@S. 테일러는,완벽한 소리를 좋습니다. 가 포함되어 있신 의견에 대답에 대한 가시성.
VonC

다른 언어로

이 페이지는 다른 언어로되어 있습니다

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................