How can I solve "curl 56 OpenSSL SSL_read: error:" in git push

Viewed 38

I'm trying to push my changes to git and I get the following error

fatal: unable to get credential storage lock in 1000 ms: File exists                
fatal: unable to get credential storage lock in 1000 ms: File exists                
fatal: unable to get credential storage lock in 1000 ms: File exists                
fatal: unable to get credential storage lock in 1000 ms: File exists                
Enumerating objects: 7844, done.                                                    
Counting objects: 100% (7844/7844), done.                                           
Delta compression using up to 4 threads                                             
Compressing objects: 100% (2294/2294), done.                                        
Writing objects: 100% (7022/7022), 50.74 MiB | 44.37 MiB/s, done.                   
Total 7022 (delta 5399), reused 5666 (delta 4634), pack-reused 0                    
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)   
send-pack: unexpected disconnect while reading sideband packet                      
fatal: the remote end hung up unexpectedly                                          
Everything up-to-date                                                               

I tried

git config http.postBuffer 524288000

git config --global http.sslVersion tlsv1.2

But I still get the same error.

At first, I pushed a large file and then did

 git filter-branch -f --index-filter "git rm --cached --ignore-unmatch 'dir/results/repeats.txt'" HEAD

Post which I am having issues.

Suggestions on how to fix this will be really helpful.

EDIT:

I also tried git config --global http.version HTTP/1.1 git push

but now I get

fatal: unable to get credential storage lock in 1000 ms: File exists                 
fatal: unable to get credential storage lock in 1000 ms: File exists                 
fatal: unable to get credential storage lock in 1000 ms: File exists                 
fatal: unable to get credential storage lock in 1000 ms: File exists                 
Enumerating objects: 7844, done.                                                     
Counting objects: 100% (7844/7844), done.                                            
Delta compression using up to 4 threads                                              
Compressing objects: 100% (2294/2294), done.                                         
Writing objects: 100% (7022/7022), 50.74 MiB | 49.06 MiB/s, done.                    
Total 7022 (delta 5399), reused 5666 (delta 4634), pack-reused 0                     
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054       
send-pack: unexpected disconnect while reading sideband packet                       
fatal: the remote end hung up unexpectedly                                           
Everything up-to-date                                                                
0 Answers
Related