无法将本地存储库推送到GitHub
遵循的步骤:
mkdir github-local
cd github-local
git init
touch README.md
git add .
git commit -m "test commit"
git remote add origin [email protected]: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.
首先创建远程存储库以推送到该存储库。在尝试添加远程存储库之前(步骤7),您必须创建远程存储库。
该错误是不言自明的:
错误:找不到存储库。致命:无法从远程存储库读取。请确保您具有正确的访问权限,并且存储库存在。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句