未找到存储库:推送到远程分支时

问题描述 投票:0回答:0

我试图将我的代码推送到远程存储库。推送时,它会抛出 repo not found 错误。之前我已将我的代码推送到远程存储库

我尝试使用删除和添加远程存储库

git 远程 rm 原点

git远程添加原点https://github.com/xx/yy.git

还尝试了以下命令来添加远程存储库

git 远程添加源 https://用户名:[email protected]/username/repo-name.git

添加远程仓库后,可以看到远程已添加,但推送时抛出未找到错误

git push --set-upstream origin master https://用户名:[email protected]/username/repo-name.git

尝试了上面的命令来推送,但抛出了同样的错误。

编辑 错误:

远程:未找到存储库。

致命:未找到存储库“https://github.com/username/repo-name.git/”

编辑

任何人请帮我解决这个错误

git github version-control repository
© www.soinside.com 2019 - 2024. All rights reserved.