TGTGInsighttelegram intelligenceLIVE / telegram public index
← Hypercube's Channel
Hypercube's Channel avatar

TGINSIGHT POST

Post #101

@SmartHypercube_channel

Hypercube's Channel

Views247帖子阅读量
发布3月24日2023/03/24 06:23
Post content

帖子内容

https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/ 推荐使用 HTTPS 而非 SSH 的 git remote,有若干好处,包括不需要在 remote 换 host key 的时候手工信任新的 key,以及不需要确保手工信任的 key 真的是正确的。 使用 HTTPS 时,会询问用户名和密码,如果开启了 2FA 的话,密码这里不能输 GitHub 账号的密码,要输入在 https://github.com/settings/tokens 创建的 token(创建时设置合适的权限)。 设置 git config --global credential.helper store 可以做到只输入一次用户名和密码,之后会自动使用之前保存的。