github - 使用 SSH 进行 GIT 推送
问题描述
我很难找到有关创建 SSH 密钥的可靠信息,以便在为主存储库和单独的嵌套存储库执行 git push 和 pull 时不需要用户名和密码。
为了确保我没有现有的错误,从 https://github.com/settings/keys中删除了它们 然后按照本指南进行操作,简而言之建议:
检查是否存在,我也从这里删除了所有内容
ls -al ~/.ssh
然后(接受没有密码的默认值)
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
eval $(ssh-agent -s)
ssh-add ~/.ssh/id_rsa
clip < ~/.ssh/id_rsa.pub
并在https://github.com/settings/keys粘贴密钥
该指南似乎到此结束,但是尝试推送回购给出:
fatal: HttpRequestException encountered.
An error occurred while sending the request.
Username for 'https://github.com':
请问这里遗漏了哪些步骤。
尝试通过 git bash 推送
解决方案
推荐阅读
- ffmpeg - filter_complex 和 hls 的 ffmpeg 配置困难
- linux - 生成信号后 mq_receive() 不返回
- inheritance - 使用 JAXB 时,如何使 XML 仅包含子类的标签?
- android - 为什么我应该在 Kotlin 中这样写?
- python - 使用 Django 设置数据库时出现问题,出现“供应引擎值”错误
- linker - 了解 STM32F103C8T6 的链接器脚本
- c++ - 将一个指针分配给另一个指针时执行的 C++ 类型检查
- google-apps-script - 有没有办法将多个范围合并到工作表 appscript 的单个范围中?
- typo3 - 如何为 TYPO3 中的表分配 css 属性?
- macos - 主机和容器之间的 OSX Docker 桌面文件共享不适用于 /etc/hosts 通过 docker-compose