赞
踩
ssh-keygen -t rsa -C "github注册时电子邮箱"
On branch main
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
翻译:在支路主
你的分支比'origin/main'领先1个提交。
(使用“git push”发布本地提交)
解决:先git push就可以,然后又遇到报错error2
error2:
ERROR: The key you are authenticating with has been marked as read only.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
翻译:错误:您正在验证的密钥被标记为只读。
无法从远程存储库读取。
请确保您拥有正确的访问权限
并且存储库存在。
解决:执行 ssh-keygen -t rsa -C "*******" 重新生成密匙,重新添加密匙;
然后重新添加本地,再推送,就可以推送成功啦(●'◡'●)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。