Mac git push偶现无法提交代码。
2023-09-27 14:27:49 时间
Connection closed by 104.xxx.xxx.x port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists
重新删除ssh 然后重新生成 按照全部步骤走走一遍 不需要设置代理。
就重新生成ssh并添加。但是切记 如果没有密码要完成步骤2
按照官方文档完成第二步
Step 2. Add the key to the ssh-agent
If you don't want to type your password each time you use the key, you'll need to add it to the ssh-agent.
-
To start the agent, run the following:
$ eval $(ssh-agent)
Agent pid 9700 -
Enter ssh-add followed by the path to the private key file:
$ ssh-add ~/.ssh/<private_key_file>
Set up an SSH key | Bitbucket Cloud | Atlassian Support
是的。。就Bitbucket需要完成第二步骤 类似gitee、git 我就没完成这两部也可以正常提交
相关文章
- gpg Sign your git commits with tortoise git on windows
- mac使用git管理Github
- 如何在 Git 里撤销(几乎)任何操作
- git如何回退单个文件到某一个commit
- mac快速安装git
- git remote 使用总结
- git reset
- Git回滚Merge
- eclipse中git的使用
- Git之常见的分支操作
- 【Git学习】五、Git在实际项目中的使用
- 于CentOS 6.5编译器安装Git 1.8
- git工程迁移(修改提交服务器地址)方法
- 搭建Git服务器-SCM-Manager
- 基于Git和Jenkins企业级自动化测试及部署实例,附详细截图和完整代码