私はgitを学んでいるので、プライベートレポジトリをGitHubに設定しました。私のgithubプライベートレポジトリにプッシュできません
## github
Host github.com
User git
HostName github.com
IdentityFile ~/.ssh/github.key
私は成功した私のGitHubのアカウントに接続することができます:
$ ssh -T github
Hi <UserName>! You've successfully authenticated, but GitHub does not provide shell access.
私が持っている私は、SSHキーを作成し、私のGitHubのアカウントにそれを格納し、私の地元のLinuxマシン上の.ssh/configファイルを編集しています私のローカルマシン上でgitリポジトリを初期化し、ユーザーを設定し、リモートリポジトリを追加しました:私はREADME.md
ファイルを作成している
$ git init
$ git config user.name "UserName"
$ git config user.email "UserEmail"
$ git remote add origin ssh://github:<UserName?/<repositoryName>.git
を、gitのためにそれを追加し、それをコミット:
$ git add README.md
$ git commit -m "First commit."
は今、毎回私はこのエラーを取得し、プッシュしよう:
$ git push origin master
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
リポジトリ作品を複製、しかし、それは私が行うことができる唯一のことです。
私のプライベートレポジトリにプッシュできないのはなぜですか?私は間違って何をしていますか?
以前から、あなたが – Magnus
gitのは、リモート-V' '入力した場合、私は'プッシュと同じエラーが出る何を得るのですか'コマンド。 – user44697