次のコマンドを使用して、github リポジトリの 1 つをオフィスのデスクトップ マシンに複製しました。
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
なぜこれが起こったのかわかりません。しかし、これは関連する問題でしょうか?