Summary
Solve the problem in one sentence:
Enter first
git push -u origin main
Then enter
git config http.sslVerify "false"
Then enter
git push -u origin main
Problem background
When uploading a project to GitHub, enter the command:
git push -u origin master
report errors:
error: src refspec master does not match any
First attempt to solve
I found an answer on the Internet:
git push -u origin main
Error is still reported after input:
OpenSSL SSL_read: Connection was reset, errno 10054
Try again
Another answer was found:
git config http.sslVerify "false"
No error is reported
Enter again:
git push -u origin main
The screenshot below shows that the upload was successful
Read More:
- error: src refspec master does not match any [How to Solve]
- [Solved] Error: SRC refspec master doors not match any
- error: src refspec master does not match any. [How to Solve]
- [Solved] Git Common Error: error: src refspec xxx does not match any/error: failed to push some refs to
- How to Solve Git Push Error: error: src refspec v3.3.04.1000 matches more than one
- No match for ‘operator =’ both ends of the equal sign do not match
- [Solved] Git error: refname refs/heads/master not found
- [Solved] git Error: error: dst refspec v0.10.2 matches more than one
- [Solved] Eureka Startup Error: Root name (‘timestamp‘) does not match expected type EurekaApplications
- [Solved] MindSpore Error: ValueError: Minimum inputs size 0 does not match…
- [Solved] Mac Install homebrew Error: error: Not a valid ref: refs/remotes/origin/master
- [ubuntu14.04]Tensorflow: Could not find any downloads that satisfy the requirement
- [Solved] CDH ipa: ERROR: Host ‘cdh-master-v02.yunes.com‘ does not have corresponding DNS A/AAAA record
- Oracle prompt text does not match format string
- [Solved] error LNK2038: Detected mismatch of “RuntimeLibrary”: The value “MDd_DynamicDebug” does not match the value “MTd_StaticDebug”
- [Solved] Canal Error: CanalParseException: column size is not match,parse row data failed
- [Solved] RHEL 7.6 Use yum Error: Could not contact any CDS load balancers
- K8S Master Initialize Error: [ERROR CRI]: container runtime is not running: output: E0812
- Error starting vue project these dependencies were not found:create in ./src/router/modules/md.js
- [Solved] QT cmak Compile Error: CMake Error: The source.. does not match the soused