无法将本地存储库推送到GitHub
遵循的步骤:
mkdir github-local
cd github-local
git init
touch README.md
git add .
git commit -m "test commit"
git remote add origin git@github.com:sounak-patra/github-local.git
git remote -v
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.
答案 0 :(得分:0)
首先创建远程存储库以推送到该存储库。在尝试添加远程存储库(步骤7)之前,您必须创建远程存储库。
该错误不言自明:
错误:找不到存储库。致命:无法从远程存储库读取。 请确保您具有正确的访问权限,并且存储库存在。