Why do I get the error "Git internal error (Code = -1, Class = 2)"?

13 ビュー (過去 30 日間)
MathWorks Support Team
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
MathWorks Support Team 2022 年 2 月 24 日
This error comes from the third-party Git library, "libgit2", that MATLAB uses.
To avoid this error:
  1. make sure that Git is installed and configured correctly in your system
  2. push the "commit" using a system call from the MATLAB Command Window as follows:\n
    >> ! git push

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSource Control についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by