Smart Factory + Data Science/Github

[Github] error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413

부파이워 2023. 10. 13. 12:09

vscode에서 github와 연동해서 잘 쓰고 있던 폴더가 commit 후 push(sync Changes) 하려는데 에러가 발생 ㅡㅡ;;

 

[info] error: RPC failed; HTTP 408 curl 22 The requested URL returned error: 408
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly

구글링을 통해 업로드 단일 파일 사이즈 제한으로 발생하는 문제로 확인하였고, 아래의 코드를 terminal에서 실행하여 업로드 파일 사이즈를 증가 (byte단위 -> 약1기가로변경)

PS E:\python\python> git config http.postBuffer 1048576000
PS E:\python\python> git config --global http.postBuffer 1048576000

하지만 ... 여전히 에러 발생 ㅡㅡ;;;

[info] remote: error: Trace: 744dfab5087b710a0e6ba7731ebdb576f241523ba047eb6aca41719456350aff        
remote: error: See https://gh.io/lfs for more information.        
remote: error: File ***.csv is 143.84 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.

 

Shift + Ctrl + p (or F1) 단축키 로 VS Code 명령 팔레트(command palette) 실행 후,  ~/.gitconfig 파일을 열어서 추가적으로 코드 수정 후 저장

[core]
  packedGitLimit = 512m 
  packedGitWindowSize = 512m
  
[pack]
  deltaCacheSize = 2047m 
  packSizeLimit = 2047m 
  windowMemory = 2047m

 

다시 push 해 본다 ... 하지만 여전히 에러 ㅡㅡ;;

 

결국 큰 용량의 데이터셋 파일 업로드는 제외하고 업로드 하기로 결정

 

이전  commit을 Undo Last Commit으로 복구한 후, 용량 큰 파일은 제외하고 commit 및 push 완료