- make sure that Git is installed and configured correctly in your system
- push the "commit" using a system call from the MATLAB Command Window as follows:\n>> ! git push
Why do I get the error "Git internal error (Code = -1, Class = 2)"?
조회 수: 13 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2022년 2월 24일
답변: MathWorks Support Team
2022년 2월 24일
I am receiving the following error when I try to push to a Git repository from the MATLAB Project interface. How can I resolve it?
Git internal error (Code = -1, Class = 2): failed to write chunk header: The server returned an invalid or unrecognized response
채택된 답변
MathWorks Support Team
2022년 2월 24일
This error comes from the third-party Git library, "libgit2", that MATLAB uses.
To avoid this error:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Source Control에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!