lxy
V2EX  ›  GitHub

开启 2FA 后更新代码的问题

  •  
  •   lxy · Jun 4, 2018 · 1829 views
    This topic created in 2905 days ago, the information mentioned may be changed or developed.
    在 GitHub 开启 2FA 后,提交代码一直提示认证失败,网上找到的解决方法是设置 access token,用这个 token 来认证。然而,我这样做之后,在 profile 的 contribution 居然没有小绿点,activity 也没有相应的活动。怎么做才能像平时一样更新状态?设置 SSH key ?感觉不好,需要把我的私钥到处复制。
    4 replies    2018-06-04 15:28:06 +08:00
    yxwzaxns
        2
    yxwzaxns  
       Jun 4, 2018 via iPhone
    复制的是公钥,谢谢
    lxy
        3
    lxy  
    OP
       Jun 4, 2018
    @SingeeKing 谢谢,查明原因了,git config 没用到自己的邮箱,以前没怎么注意,感觉浪费了好多小绿点...
    @yxwzaxns 我的意思是如果我想在公司和家里等不同电脑上提交代码的话,需要把私钥复制到这些电脑上。
    SingeeKing
        4
    SingeeKing  
    PRO
       Jun 4, 2018 via iPhone   ❤️ 1
    @lxy 可以每个电脑一个不同的公-私钥对
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3148 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 11:21 · PVG 19:21 · LAX 04:21 · JFK 07:21
    ♥ Do have faith in what you're doing.