Git lfs 오류
| git –no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v –tags origin refs/heads/main:refs/heads/main Pushing to https://github.com/kdw98tg/UnitySystemProgramming.git POST git-receive-pack (chunked) error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400 send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly Everything up-to-date Uploading LFS objects: 100% (46/46), 131 MB | 0 B/s, done. Completed with errors, see above |
이 에러는 Git이 원격 저장소로 데이터를 푸시하려고 할 때 발생한 문제입니다. RPC failed와 unexpected disconnect 메시지는 주로 네트워크 연결 문제나 Git LFS(대형 파일 저장소) 관련 설정 문제로 인해 발생할 수 있습니다. 이 문제를 해결하려면 다음과 같은 방법을 시도해 볼 수 있습니다:
1. Git HTTP 버퍼 크기 증가
HTTP 연결이 끊어지는 문제를 해결하려면 Git의 HTTP 버퍼 크기를 증가시킬 수 있습니다. 아래 명령어를 실행하여 버퍼 크기를 설정해 보세요:
bash
Copy
git config http.postBuffer 524288000
이 명령어는 Git의 HTTP POST 버퍼 크기를 500MB로 설정합니다.
댓글 남기기