在repostory中推送代码时Git hub出错?
我在GitHub上创建了一个新帐户,并创建了一个新的存储库。现在,我想将我的localhost项目推送到该存储库中 默认情况下,它显示主分支,当我尝试在命令行中推送代码时,会出现以下错误:在repostory中推送代码时Git hub出错?,git,github,Git,Github,我在GitHub上创建了一个新帐户,并创建了一个新的存储库。现在,我想将我的localhost项目推送到该存储库中 默认情况下,它显示主分支,当我尝试在命令行中推送代码时,会出现以下错误: git@GitHub.Com: Permission denied (public key). fatal: Could not read from remote repository. 以下是命令: git add . git commit -m "this is my first commit" gi
git@GitHub.Com: Permission denied (public key).
fatal: Could not read from remote repository.
以下是命令:
git add .
git commit -m "this is my first commit"
git pull origin master
我不知道为什么会出现这个错误 检查您的公钥是否正确添加到github帐户中 然后正确添加验证远程
git remote -v
验证上述内容后,尝试拉入或推入。“检查您的公钥是否已正确添加到github帐户”您可以告诉我如何添加密钥吗?或者使用
https
而不是ssh
(然后您可以使用密码推入(而不是拉入)可能的重复项