已暂存并提交本地存储库并创建了远程存储库。检查它是否确实存在(git remote -v
)并且它似乎在那里。
[当我尝试使用-git push -u origin master
推送至它时,出现以下错误消息:
'https//:github.com/{username}/CodingDojo_Portfolio.git' does not appear to be a git repository
fatal: Could not read from remote repository.
也曾尝试从现有的仓库回购:
git remote add origin https://github.com/{username}/CodingDojo_Porfolio.git
git push -u origin master
我不明白我在做什么错误
((我之前遇到过类似的错误,我删除了远程存储库,并在没有README.md的情况下重新创建了它,但是可以,但是这次不行)
似乎在:
后面的域名中有一个奇怪的https://
。使用git remote set-url origin 'https//github.com/{username}/CodingDojo_Portfolio.git
修复。