LQY's Blog
Share anything
incomplete projects
Archived by month
Useful tags
2023-05-14 |robot | Miscellaneous

git clone https://github.com/pytorch/pytorch hangs

After adding verbose switch: git clone https://github.com/pytorch/pytorch -v, we get:

Cloning into 'pytorch'...
POST git-upload-pack (175 bytes)
POST git-upload-pack (chunked)

According to StackOverflow:

This is a bug in Git; when using HTTPS it will use chunked encoding for uploads above a certain size. Those do not work. A trivial fix is to tell git to not chunk until some ridiculously large size value...

Add this to ~/.gitconfig:

        postBuffer = 157286400

Add comments

Please add name
Please fill in valid email address
Please fill in a valid website
Please fill in content