[英]pushing back to github repository
我使用以下命令將我的一個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
我不知道,為什么會這樣。 但這可能是一個相關問題嗎?
git push -u `orgin` `master`
這應該不起作用:它是' origin
', 而不是 ' orgin
';)
所以,默認情況下,這應該工作:
git push -u origin master
(正如我在“ 為什么需要明確推送新分支? ”中詳細說明的那樣? )
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.