我的 github 倉庫在推送時開始給我這個錯誤:
賦予 http.version 的未知值:'HTTP/1.1。'
這是完整的日志:
% git status
On branch main
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
% git push
warning: unknown value given to http.version: 'HTTP/1.1.'
batch response: Unknown HTTP version "HTTP/1.1."
Uploading LFS objects: 0% (0/7), 0 B | 0 B/s, done.
error: failed to push some refs to 'https://github.com/blabla/unity-blabla.git'
我該如何解決?
uj5u.com熱心網友回復:
打開 gitconfig 檔案(~/.gitconfig
在基于 Unix 的系統和C:\ProgramData\Git\config
Windows 上),并手動編輯包含 HTTP 版本的行(即,洗掉它)。
或者,您可以鍵入以下命令:
git config --global --unset http.version
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/470884.html