Chell
V2EX  ›  问与答

macOS 中关于 git 的一点问题

  •  
  •   Chell · Jul 24, 2019 · 1053 views
    This topic created in 2503 days ago, the information mentioned may be changed or developed.

    在切换 Github 账号的时候,我更改了 git 的全局邮箱,也更新了我的 SSH 密钥,但是 push 的时候仍然一直报错。后来查了查才知道 git 自动访问了 macOS 的 keychain 保存的 Github 账号,并企图上传到我原来的账号上。

    但问题是通过 SSH 认证的时候并不需要知道账号和密码,不知道 git 是不是根本没管 SSH 密钥

    rbe
        1
    rbe  
       Jul 24, 2019
    看看 git repo 的链接是不是 https 开头的,走错协议了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2666 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 11:31 · PVG 19:31 · LAX 04:31 · JFK 07:31
    ♥ Do have faith in what you're doing.