My github repo started to give me this error when pushing:
unknown value given to http.version: 'HTTP/1.1.'
Here is the full log:
% 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'
How can I resolve it?
CodePudding user response:
Either open the gitconfig file (~/.gitconfig
on Unix based systems, and C:\ProgramData\Git\config
on Windows), and edit the line containing the HTTP version manually (i.e., remove it).
Or, you can type the following command:
git config --global --unset http.version