提交 Github 时出错
Error While commiting to Github
远程:未找到存储库。
严重:未找到存储库“https://github.com/vivekghanchi/portfolio.git/”
the repository is deleted but I was committing to a new repository after than also it is showing this
提交是本地操作。
确保您的遥控器 url 与您的新存储库相匹配。
更新为:
cd /path/to/my/local/repo
git remote set-url https://github.com/vivekghanchi/aNewRepo
然后再尝试推送:
git push
推送不是"committing to GitHub",而是"publishing your local commits to your upstream GitHub repository"。
您需要先在 GitHub 中创建存储库(直接在您的 Web 浏览器中完成)。然后您可以执行 git push
将本地提交上传到新存储库。
此外,在创建您的 GitHub 存储库后,请确保您要推送的 url 与 GitHub 的相匹配,我注意到最后有一个额外的 /
你的 url,不应该在那里。
要查看您要推送到的 url,请发出:
git remote -v
您需要先在 GitHub 中创建您的存储库(直接在您的 Web 浏览器中完成)。然后您可以执行 git 推送以将您的本地提交上传到新存储库。
提交是本地操作。
或者您可以添加现有的存储库
git remote add origin remote repository URL
远程:未找到存储库。 严重:未找到存储库“https://github.com/vivekghanchi/portfolio.git/”
the repository is deleted but I was committing to a new repository after than also it is showing this
提交是本地操作。
确保您的遥控器 url 与您的新存储库相匹配。
更新为:
cd /path/to/my/local/repo
git remote set-url https://github.com/vivekghanchi/aNewRepo
然后再尝试推送:
git push
推送不是"committing to GitHub",而是"publishing your local commits to your upstream GitHub repository"。
您需要先在 GitHub 中创建存储库(直接在您的 Web 浏览器中完成)。然后您可以执行 git push
将本地提交上传到新存储库。
此外,在创建您的 GitHub 存储库后,请确保您要推送的 url 与 GitHub 的相匹配,我注意到最后有一个额外的 /
你的 url,不应该在那里。
要查看您要推送到的 url,请发出:
git remote -v
您需要先在 GitHub 中创建您的存储库(直接在您的 Web 浏览器中完成)。然后您可以执行 git 推送以将您的本地提交上传到新存储库。
提交是本地操作。
或者您可以添加现有的存储库
git remote add origin remote repository URL