プライベートリポジトリを作成しましたが、ターミナルからプッシュできません[重複]
Aug 19 2020
ターミナルUbuntuでプロジェクトを作成しました。それから私はしました
git init
git add .
git commit -m "fc"
次に、githubでPRIVATEリポジトリを作成しました。
最終的に、
~$ git remote add github.com/my-user-name/XXXXXXX.git ~$ git push -u origin master
しかし、私はこのエラーが発生します
fatal: 'github.com/my-user-name/XXXXXXX.git' 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.
このコンピューターでSSHをセットアップしました。
助けてくれてありがとう。
回答
1 wjandrea Aug 19 2020 at 10:14
https://
またはのようなプロトコルを指定する必要がありますgit://
。プロトコルがない場合、URLはコンピュータ上のファイルを参照しますが、おそらく存在しません。
たとえば、
git remote add origin https://github.com/my-user-name/XXXXXXX.git