我使用以下命令将我的一个github仓库克隆到我的办公桌面电脑:
git clone git://github.com/indiajoe/MyRepo.git
在进行了一些更改并提交后,我无法使用命令将更改推回存储库。
git push -u orgin master
以下是错误信息。
fatal: 'orgin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我试图重新输入如下所示的地址。
git remote rm origin
git remote add origin https://github.com/indiajoe/MyRepo.git
即使如此,我仍然会遇到相同的错误。 我的git remote -v的输出结果是:
origin https://github.com/indiajoe/MyRepo.git (fetch)
origin https://github.com/indiajoe/MyRepo.git (push)
这里可能出了什么问题?
PS:在克隆时,我无法通过以下命令使用https进行克隆
git clone https://github.com/indiajoe/MyRepo.git
但是使用该命令克隆时没有出现任何问题:
git clone git://github.com/indiajoe/MyRepo.git
我不知道为什么会发生这种情况。但是这可能与问题有关吗?