GItlab에 push를 했건만 아래와 같은 오류가 발생해서 이를 해결하고자 작성합니다.
error: RPC failed; result=22, HTTP code = 413
fatal: The remote end hung up unexpectedly
구글링을 해보면 원인은 크키가 1MB보다 큰 파일이 있을 경우에 발생되는 에러라고 합니다.
1. git config --global http.postBuffer 52428800
-> 파일의 크기를 50MB로 할 수 있습니다.
-> 실패
2. git config --global http.postBuffer 524288000
-> 실패
3. git config --global http.postBuffer 1048576000
-> 실패
4. local git folder인 /.git/폴더로 이동해서 config 파일을 수정
[core]
packedGitLimit = 512m
packedGitWindowSize = 512m
[pack]
deltaCacheSize = 2047m
packSizeLimit = 2047m
windowMemory = 2047m
위의 내용을 추가
-> 실패
5. local git folder인 /.git/폴더로 이동해서 config 파일을 수정
[remot = "origin"]
url = http://git.domain.com/repo/repo.git
fetch = +refs/heads/*:refs/remote/origin/*
pushurl = git@git.domain.com:repo/repo.git
git.domain.com과 rep/repogit만 바꿔서 추가했다.
-> 이 부분또한 안될 것 같았다.
git.daouoffice.co.kr:daoucloud/dasaasoperation.git
6. 결국 git안의 폴더를 뜯어 문제가 되는 부분을 git ignore에 넣었다.
'분리수거' 카테고리의 다른 글
ERROR: "docker buildx build" requires exactly 1 argument. (0) | 2024.05.22 |
---|---|
git commit 취소, 되돌리기 (0) | 2022.05.26 |