无法将本地存储库推送到 GitHub
Unable to push local repository to GitHub
无法将本地存储库推送到 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.
首先创建远程存储库以便推送到该存储库。在尝试添加远程存储库(第 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.
无法将本地存储库推送到 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.
首先创建远程存储库以便推送到该存储库。在尝试添加远程存储库(第 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.