i also get the same problem but fix it just changing the remote url using this command
git remote set-url origin <git-url>
then push code and it's work for me. i think while setting the remote url by mistake some characters is added with https url that's why i get that error