Getting this error whenever I'm running the command git push -u origin master
after commits and adding the origin. How to solve this?
Try removing the origin via
git remote remove origin
and adding the origin again via
git remote add origin https://github.com/YourUsername/YourRepo.git
It worked for me, when i encountered the exact same problem, since my orgin was corrupted.
Using gitbash, git remote -v
didn't show anything unusual.
But using the Win10 cmd.exe git remote -v
showed me an additional character just right before the https://github.com/...
I think this extra character might came along by copy-pasting the link from github into gitbash.
I didnt need to re-install git
It could be that when you installed git on your local machine you didn't choose "Use the native windows secure channel library"
I had this issue too and after i removed git and installed with native windows library it worked
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With