无法将本地存储库推送到 GitHub

Unable to push local repository to GitHub

无法将本地存储库推送到 GitHub

遵循的步骤:

  1. mkdir github-local
  2. cd github-local
  3. git init
  4. touch README.md
  5. git add .
  6. git commit -m "test commit"
  7. git remote add origin git@github.com:sounak-patra/github-local.git
  8. git remote -v
  9. git push --set-upstream 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.

首先创建远程存储库以便推送到该存储库。在尝试添加远程存储库(第 7 步)之前,您必须创建远程存储库。

错误不言自明:

ERROR: Repository not found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.